Mega Code Archive
Categories
/
Python Tutorial
/
File
Open a file for reading
inPath = "input.txt" file = open(inPath, 'rU') if file: file.close() else: print "Error Opening File."