Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Limit of Fgets()
Message
From
18/08/2004 13:18:35
 
 
To
18/08/2004 13:13:57
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00934184
Message ID:
00934190
Views:
25
>I am trying to read a long string from a .txt file using FGETS, and it is not returning the entire line. Is there a limit of characters that FGETS will return, and if so, is there a way I can get around that? TIA!
>

By default, FGETS() stops at 254 characters. To read more, pass the number of bytes to read as the 2nd parameter.

An alternative approach is to use FileToString() to read the whole file and then break it up with ALINES().

Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform