Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to read a flat file line by line ?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00733209
Message ID:
00733215
Views:
23
Eric,

>I need to read a flat file but this file may be too big for filetostr.
>Is there a way to read a line at the time ?

Another way to tackle this (especially if the lne length isn't too big)

create cursor xtemp ( cline c(254) )
append from TheFile type sdf

This lets yoy SCAN or use other DML commands to process the file
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform