>Hello,
>I have an application that using FGETS to go line by line through a text file. What I want to do is actaully do the reverse of FGETS, and go up a line in a text file. Anybody out there have any experience doing this?
>
>Thanks!!!
>
>MAC
You could use ALINES() and FILETOSTR() and iterate backward through the array.
lcstr = FILETOSTR(GETFILE('TXT'))
lnlast = ALINES(a_lines, lcstr)
FOR lni = lnlast TO 1 STEP -1
NEXT
George
Ubi caritas et amor, deus ibi est