Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FGETS to go backwards
Message
From
31/07/2003 09:45:23
 
 
To
30/07/2003 15:49:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00815089
Message ID:
00815358
Views:
10
>Is there a way to make FGETS go backwards? I created my own function call FBACKS which uses FREAD with a negitive 1 until I hit a chr(13) or chr(10) but wanted to know if there is a better way. I basicly want to read from the file bottom to top NOT top to bottom as most low level files assumes.

You could use the FILETOSTR() function to get your entire file to a string, (FGETS has a 8K limitation) and use RAT() to read backwards perhaps?
Sanjay Kapoor

Relatively speaking is a conversation with Einstein
Previous
Reply
Map
View

Click here to load this message in the networking platform