Re: [fpc-pascal] read lines at end of file

2011-04-11 Thread Robert Wolfe
On 04/11/2011 12:32 PM, John Lee wrote: Need to read the last 4 lines (txt) of a very large log file 100M bytes, 100k lines or more lots of times - of course I can read through the file in the normal way but this is rather slow. Is there a way to 'read lines from the end'? I note that unix tai

Re: [fpc-pascal] read lines at end of file

2011-04-11 Thread Mattias Gaertner
On Mon, 11 Apr 2011 19:45:10 +0200 José Mejuto wrote: > Hello FPC-Pascal, > > Monday, April 11, 2011, 6:32:20 PM, you wrote: > > JL> Need to read the last 4 lines (txt) of a very large log file 100M bytes, > JL> 100k lines or more lots of times - of course I can read through the file > in > J

Re: [fpc-pascal] read lines at end of file

2011-04-11 Thread José Mejuto
Hello FPC-Pascal, Monday, April 11, 2011, 6:32:20 PM, you wrote: JL> Need to read the last 4 lines (txt) of a very large log file 100M bytes, JL> 100k lines or more lots of times - of course I can read through the file in JL> the normal way but this is rather slow. Is there a way to 'read lines