inPath = "input.txt" file = open(inPath, 'rU') if file: file.close() else: print "Error Opening File."