How to Open a File: handle = open(file_name, access_mode = 'r') : Member in « File « Python Tutorial






filename = 'file.txt'
fobj = open(filename, 'r')
for eachLine in fobj:
   print eachLine,
fobj.close()








12.8.Member in
12.8.1.How to Open a File: handle = open(file_name, access_mode = 'r')