iterate start at second row in file not first

Scott David Daniels Scott.Daniels at Acm.Org
Tue May 20 21:09:54 EDT 2008


Mark d. wrote:
> How about:
> 
> mov = open(afile)
> line = mov.readline()
> ...(process your ':' line)
> for line in mov.readlines():
>    ...
The problem here is that you read the entire file in in the
call to readlines.

--Scott David Daniels
Scott.Daniels at Acm.Org




More information about the Python-list mailing list