Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python read text file look for string

 f = open(filename,  "r")
   whattoReturn = "None"
   if strToFind in f.read():
      whattoReturn = strToFind
 
PREVIOUS NEXT
Tagged: #python #read #text #file #string
ADD COMMENT
Topic
Name
2+2 =