You can read through the file and only keep the last n lines you read with a "circular buffer". Say with a 10 line array ...
See what happens to the array index when you read line the 11th line or the 101st? I'll leave it to figure out how to print the last 10 lines in order.
If you don't want to read the whole file - too many megabytes or whatever - you can do some trickier stuff with random access file and your own backwards buffered reader.
Any of that sound like it will help?
[ October 07, 2006: Message edited by: Stan James ]