[BangPypers] Reading log file using seek and tell

Gora Mohanty gora at mimirtech.com
Fri Mar 8 12:02:36 CET 2013


On 8 March 2013 16:07, davidsnt <davidsnt at gmail.com> wrote:
> Hello,
>
> How to read log files in python, On the first run I need to read all the
> lines from the log, process it and get the position of the last read line
> and from the next run I have to read from the last read line and process
> all the lines after it and similarly. Can you please help me with some
> examples?

If you already know about seek and tell, Python file
objects offer similar functionality. Please look up
documentation on this.

Regards,
Gora


More information about the BangPypers mailing list