That is the data is already provided by another program, or user must type it manually.
I mean these two states:
dir /b /s *.* | myprogram
and
myprogram
In second case the program would be waiting for user input. Is there a way to prevent that ?
POSIX has
isatty(), whereas Visual C++ has_isatty(), both of which will return true if a file descriptor is a terminal or command line, e.g.isatty(fileno(stdin)).