Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FREAD() etc...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01246151
Message ID:
01246201
Vues:
18
>>Thanks - fgets() seems to be the way to go. How would I get it to read each line in a file to a variable? I mean a text file isn't a table and I won't be able to do a Do While !eof() skip Enddo type situation on each line...
>Hi John
>Why not
>
>CLEAR
>lcTxtFile = GETFILE([txt],[Your txt])
>IF NOT EMPTY(lcTxtFile)
>   ALINES(myarr,FILETOSTR(lcTxtFile))
>   DISPLAY MEMORY LIKE myarr
>ENDIF
>
:-)
Because all depends how big is the file and what version of VFP John used.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform