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. -- http://mail.python.org/mailman/listinfo/python-list
- Re: first, second, etc line of text file Jeff McNeil
- Re: first, second, etc line of text file George Sakkis
- Re: first, second, etc line of text file Daniel Nogradi
- Re: first, second, etc line of text file Neil Cerutti
- Re: first, second, etc line of text file Mike
- Re: first, second, etc line of text file Steve Holden
- Re: first, second, etc line of text file Daniel Nogradi
- Re: first, second, etc line of text file Grant Edwards
- Re: first, second, etc line of text file Jeff
- Re: first, second, etc line of text file Grant Edwards
- Re: first, second, etc line of text f... Jay Loden
- Re: first, second, etc line of t... Jeff McNeil
- Re: first, second, etc line of text file Bjoern Schliessmann
- Re: first, second, etc line of text file James Stroud
- Re: first, second, etc line of text file Gabriel Genellina
- Re: first, second, etc line of text file Paul Rubin