Using Iterators with Files : Loop through : File PYTHON TUTORIALS


PYTHON TUTORIALS » File » Loop through »

 

Using Iterators with Files


myFile = open('test.txt')
for eachLine in myFile:
     print eachLine,  
myFile.close()



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo File
» Loop through