Mega Code Archive
Categories
/
Python Tutorial
/
File
Using Iterators with Files
myFile = open('test.txt') for eachLine in myFile: print eachLine, myFile.close()