Mega Code Archive

 
Categories / Python / File
 

Demonstrates reading from a text file

#  print "Opening and closing the file." text_file = open("read_it.txt", "r") text_file.close()