Mega Code Archive
Categories
/
Python
/
File
Looping through the file, line by line
print "\nLooping through the file, line by line." text_file = open("read_it.txt", "r") for line in text_file: print line text_file.close()