Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading Text
Message
From
01/11/2001 17:31:05
 
 
To
01/11/2001 17:27:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00576452
Message ID:
00576454
Views:
19
This message has been marked as a message which has helped to the initial question of the thread.
Use FSEEK() to get to the end of the file then read bytes backwards from the bottom of the file until you get to just before carriage return then do two FGETS(), the second one will be the last line.

>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
Previous
Reply
Map
View

Click here to load this message in the networking platform