[Tutor] searching in files
kent_johnson at skillsoft.com
Wed Aug 11 16:55:54 CEST 2004
You can iterate over lines in a file without reading in the whole file at
for line in aFile:
>>> for line in f:
... if '<h3>' in line:
... print line
At 07:46 AM 8/11/2004 -0700, Ali Polatel wrote:
>Yes I know the method readlines but the file is enorm large and it can
>make the computer slow if I make the programme read all of it into a
>Any other advices?
>Do you Yahoo!?
>Yahoo! Mail is new and improved -
>Tutor maillist - Tutor at python.org
More information about the Tutor