Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find size of a text file
Message
 
À
28/02/2000 11:23:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00338422
Message ID:
00338473
Vues:
9
What implications would FileToStr() have regarding memory?

>>Erik:
>> Is a way I can find the number of lines in a text file ?
>>thanks.
>>sherry
>
>If number of lines is determined by the number of carriage returns, you can use:
>
>lcfileString = FILETOSTR("MyFile.txt")
>lnCRs = OCCURS(CHR(13), lcFileString)
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform