Software Archive
Read-only legacy content
17061 Discussions

Check for Standard Input when redirected from a file

gram
Beginner
249 Views
I'm looking for a way to check for standard input whether keyed in or
re-directed from a file. PEEKCHARQQ seems not to notice redirected input.
On UNIX we used a C function which set a time-delayed alarm interrupt,
then tried reading a character from stdin within that time-delay.
There is a C function PeekConsoleInput which may do the job but for the wrong reasons, i.e. input re-direction, I think, causes an error return.
0 Kudos
0 Replies
Reply