DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+3 =
Submit