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:
00733211
Views:
27
>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

Many thanks Sergey. It works very fine!
Eric Crespin
Consultant
PC PLUS Software Inc.
www.pcplus.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform