Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find size of a text file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00338422
Message ID:
00338447
Vues:
10
That's one where you'd have to open the file low level.

hFile=FOPEN("filename")
nLines=0
DO WHILE NOT FEOF(hFile)
cLine=FGETS(hFile)
nLines=nLines+1
ENDDO
FCLOSE(hFile)

nLines is the number of lines found.


>Erik:
> Is a way I can find the number of lines in a text file ?
>thanks.
>sherry
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform