file rewind?

Max M maxm at mxm.dk
Fri Apr 5 09:07:57 EST 2002


joel8bit wrote:

> when I run the module from the comman line by itself, it counts the lines
> alright, but does not count the characters.  do I need to "rewind" the file
> reference after the first function call to countLines()?

I think you need the seek() method.

regards Max M




More information about the Python-list mailing list