Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find size of a text file
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00338422
Message ID:
00338447
Views:
8
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
Previous
Reply
Map
View

Click here to load this message in the networking platform