first, second, etc line of text file

Daniel Nogradi nogradi at
Wed Jul 25 22:33:36 CEST 2007

Thanks all! I think I will stick to my original method because the
files can be quite large and without reading the whole file into
memory probably enumerate( open( textfile ) ) is the only way to
access an arbitrary Nth line.

More information about the Python-list mailing list