Search
 
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
Name
9+5 =