⬅︎ Back to To readline() or readlines()
your link does not work along with everything else on this page.
The short answer is:: if line.find('mystring') > -1: ....my_matched_function() The long answer is: http://docs.python.org/tut/node5.html#SECTION005120000000000000000
Comment
your link does not work along with everything else on this page.
Parent comment
The short answer is:: if line.find('mystring') > -1: ....my_matched_function() The long answer is: http://docs.python.org/tut/node5.html#SECTION005120000000000000000