A friend confused eof() and feof() when reading a text file. It doesn't surprise me that the result wasn't exactly as expected, not even that no error message was issued (since both eof() and feof() accept a numerical argument).
What surprised me is that the small test program made the computer hang completely! All the program did was to read and display c:\autoexec.bat line-by-line.
Does any one have an idea why this insignificant confusion would cause the computer to hang completely? Not even Ctrl-Alt-Del worked.
TIA, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)