Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How get the Number of Lines from a text file
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00451983
Message ID:
00451987
Views:
31
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform