If you have already proceeded from the beginning of the file and want to go back to a previous line for some reason, you might want to look at the FSEEK() function.
Dana
>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
Where's the damned Any Key?...too late