Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to read a flat file LINE by LINE ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00647169
Message ID:
00647170
Vues:
16
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform