Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to iterate through a text file in python

with open ('schedule.txt', 'rt') as myfile:
    for myline in myfile:
        print(myline)
 
PREVIOUS NEXT
Tagged: #iterate #text #file #python
ADD COMMENT
Topic
Name
6+9 =