Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fgets limits?
Message
From
12/04/2001 09:01:27
 
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00494767
Message ID:
00494806
Views:
15
>>VFP 6 now is limited to using files of 16MB and a maximum line length of 8192 bytes using the internal LLF functions; you might consider using the new FILETOSTR() and ALINES() functions rather than the LLF I/O commands. If you have text files with single lines in excess of 8K/line, this may provide a workaround; alternatively, you can use the Scripting.FileSystemObject to handle reading the text file line-by-line; it uses a different set of internal functions and may not run into the problem. OTOH, if you are getting CR/LF delimited text lines that long, I suspect that you have other problems related to parsing the input which are considerably more of a headache...
>
>Thanks for the info. Filetostr doesn't have any limits? Anyway, in my case the 8K bound will do, since lines are never longer than 6400 bytes. And structered in groups of 64 bytes, so parsing is no great deal either.
>

Not on line length; I think it has the same 16MB maximum file size as VFP has on it's low-level stuff. Using ALINES is limited to a maximum of 65000 lines per string processed.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform