Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python read file line by line

with open("file.txt") as file_in:
    lines = []
    for line in file_in:
        lines.append(line)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #read #file #line #line
ADD COMMENT
Topic
Name
6+4 =