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

Click here to load this message in the networking platform