human
Search for string in txt file
assistant
Here is some code to search for string 'blabla' in txt file 'example.txt'

if ('blabla' in open('example.txt').read()):
    pass

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.