Issue
For a C++ application, how can I programmatically force an end of file (EOF) on stdin?
Solution
Actually, you cannot. As long as you can read data from stdin, EOF hasn't been reached, and in fact you can never reach it. You can close the stdin
itself, however. To close it, do this:
fclose(stdin);
After this, you cannot read data from stdin
.
Answered By - Nawaz Answer Checked By - Katrina (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.