read a files particular line

Frank Grellert fgrellert at t-online.de
Thu Oct 14 05:28:21 EDT 2004


Hi,
does anybody have an idea how to read a particular line of a file like awk's
awk '{if( NR==12) print $0}' filename (reads lineno 12 of filename)

thanks for your help

Frank Grellert



More information about the Python-list mailing list