[fpc-pascal] read lines at end of file
John Lee
johnelee0 at gmail.com
Mon Apr 11 18:32:20 CEST 2011
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 tail or its port to windows does this very fast
so guess there must be a fast way to do it in pascal too?
TIA for any ideas John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20110411/412c6fc6/attachment.html>
More information about the fpc-pascal
mailing list