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:
00647169
Message ID:
00647170
Views:
15
>I understand how to read a complete text file in a variable but I need to read it line by line. I am playing around with FGETS but without success :-(
>
>thanks for any hint
>Eric

Use filetostr to get the text and alines to create a array with one line by row :-)
lcFileText=FILETOSTR(cFileName)
nLines=ALINES(aTextArray,lcFileText)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Reply
Map
View

Click here to load this message in the networking platform