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:
00733210
Views:
25
You can use LLFF
lnIn = FOPEN(lcFileName)
DO WHILE NOT FEOF(lnIn )
  lcLine = FGET(lnIn,1024)
  * Processing here
ENDDO
FCLOSE(lnIn)
Make sure that second parameter in FGET is bigger than longest record in the file.

>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 ?
>
>Thanks
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform