seek in a file

Andreas Penzel mail at andreas-penzel.de
Tue Mar 26 18:00:40 EST 2002


Hello NG!

How to jump to a specified line in a file which is read-opened?
With seek() I can jump to an exact position of  the complete file in
"byte-steps".
Is seek able to jump to a line-number?
If not, what else can I do?

Thanks for help!

- Andreas





More information about the Python-list mailing list