Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Eof() vs. feof()
Message
From
26/04/2002 18:58:50
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Eof() vs. feof()
Miscellaneous
Thread ID:
00649845
Message ID:
00649845
Views:
55
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)
Next
Reply
Map
View

Click here to load this message in the networking platform