Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to change a txt file to a table
Message
From
28/02/2001 16:44:08
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00480723
Message ID:
00480741
Views:
7
>I can't do a FGETS() because it will only hold 254 characters.

Not exactly; 254 is the max if you don't sepcify a "max" up to the Carriage Return.

If all lines in the file are not more than, say, 300 bytes, then you can:

m.cBuff = FGETS( m.nHandle, 300 )

which will retrieve 1 line at a time, up to the next CR, as long as the line is not greater than 300 bytes (otherwise, you only get the next 300 bytes).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform