DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
file searching in python
with open('largeFile', 'r') as inF: for line in inF: if 'myString' in line: # do_something
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#file
#searching
#python
ADD COMMENT
Topic
COMMENT
Name
9+5 =
Submit