"noro" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Is there a more efficient method to find a string in a text file then: > > f=file('somefile') > for line in f: > if 'string' in line: > print 'FOUND' >
yes, more efficient would be: grep (http://www.gnu.org/software/grep/) -- http://mail.python.org/mailman/listinfo/python-list