Mega Code Archive
Categories
/
Python Tutorial
/
File
Open a file for writing
outPath = "output.txt" file = open(outPath, 'wb') if file: file.close() else: print "Error Opening File."