first, second, etc line of text file

Daniel Nogradi nogradi at gmail.com
Wed Jul 25 16:33:36 EDT 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