>Dear Cetin,
>
>I don't want to do all at once. My requirement is that I want to read the last line of the text file and then remove the line after being reading the same and save the file rest of. It should happen until my pointer not move on the top of the file.
>
>
>Ravi
I meant to use a temporary cursor for that. It'd be better than to make multiple I/O.
If you don't want to do that way than check fopen, fseek, fchsize etc.
Cetin