|
[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
|