Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python read file to eof

with open('foobar.file', 'rb') as f:
    for line in f:
        foo()

    else:
        # No more lines to be read from file
        bar()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #read #file #eof
ADD COMMENT
Topic
Name
9+5 =