Plik wyszukiwania w Pythonie

with open('largeFile', 'r') as inF:
    for line in inF:
        if 'myString' in line:
            # do_something
Horrible Horse