Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using FGETS and file has hex 1A at end - how tell at feof?
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Using FGETS and file has hex 1A at end - how tell at feof?
Miscellaneous
Thread ID:
00247780
Message ID:
00247780
Views:
103
Using fopen, fgets and fclose to read a file. Each record has a hex 0D, 0A at the end. The last record in the file has only a hex 1A. This is causing me trouble because the feof is not detecting eof and the fgets does not read the 0A. I end of with a blank string returned from the fgets. Any ideas how to recodnize the eof. I do not want the 1A.

Brenda
Next
Reply
Map
View

Click here to load this message in the networking platform