Check this:-
Last3Lines.zip
Check this:-
Last3Lines.zip
Heavy Metal Rules. For those about to rock, we salute you.
HIT THANKS IF I HELPED.
Read the file backwards by chunks and stop when you have found the beginning of the third-from-the-end line or the beginning of the file. Of course reading a text file backwards only works for self-synchronizing encodings (well, the only thing you need is the ability to synchronize on line ending sequences).
Bookmarks