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