Reading one line at a time. : Text File Read : File PYTHON examples


PYTHON examples » File » Text File Read »

 

Reading one line at a time.




print "nReading one line at a time."
text_file = open("read_it.txt""r")
print text_file.readline()
print text_file.readline()
print text_file.readline()
text_file.close()

           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo File
» Text File Read