Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to find word in file python

with open('example.txt') as f:
    if 'blabla' in f.read():
        print("true")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find #word #file #python
ADD COMMENT
Topic
Name
5+8 =