Open a file for writing : Open : File PYTHON TUTORIALS


PYTHON TUTORIALS » File » Open »

 

Open a file for writing


outPath = "output.txt"

file = open(outPath, 'wb')
if file:
    file.close()
else:
    print "Error Opening File."



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo File
» Open