View Single Post
  #1 (permalink)  
Old Nov 8th, 2007, 10:14
eon201 eon201 is offline
Up'n'Coming Member
Join Date: Oct 2007
Location: london
Age: 25
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] Reading as text file backwards

Hi everyone.

Im currently reading server log files from my server and taking the data into arrays. To make sure im getting the most relevant data im doing a time check to only get the latest hours data.

The only problem?? The file is HUGE, and the code scans the whole file before pulling the relevant data. Which is annoying considering the most recent data is at the bottom of the file!

So does anyone know of a way to read the file line by line but backwards??

Thanks again. Eon201
Reply With Quote