Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FGets() more than 254 char
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
FGets() more than 254 char
Miscellaneous
Thread ID:
00809261
Message ID:
00809261
Views:
93
I have been using fgets to read data from a text file(message that is passed to me, then I turn it into a file and read it). The problem (I just found out) is that some of the segments of the message are more than 254 characters long, at that point fgets seems to stop reading that line like it was carriage return. Thus I end up with truncated data. FREAD will read the whole file it looks like or the number of bytes I tell it, but I don't know how many bytes each segment will be. Anybody have any idea?

Kirk
Next
Reply
Map
View

Click here to load this message in the networking platform