Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading Text
Message
 
 
To
01/11/2001 17:27:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00576452
Message ID:
00576455
Views:
28
This message has been marked as the solution to the initial question of the thread.
>Hi,
>
>Does anyone know the easiest way to go to the bottom of a text file and read just the last line, no matter how many characters long it is? I am using VFP6. Thank you
>
>Tim

Is the file huge? If not, you may try:
lcStr=filetostr('yourfile.txt')
lnPos = rat(chr(13)+chr(10), m.lcStr)
lcFinalStr=substr(lcStr, lnPos+1)
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform