Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How get the Number of Lines from a text file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00451983
Message ID:
00451987
Vues:
34
>If you can rely on Carriage Returns to be the line seperators:
>?occurs(chr(13),filetostr(yourfilename))+1

Also, if you also wish to count soft returns and ensure the memowidth setting is at the maximum you wish to allow:
?memlines(filetostr(yourfilename))

>
>
>>HI all!!
>>
>>I wonder if someone has an specific technique to get the number of lines from a text file...
>>
>>thanks
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform