Save to file

by: _hacker, 9 years ago


When I try to save a file (in pyscripter), I get a error that says Permission denied. Here's the code:

tempData = 65,43,52
saveFile = open("dataFile.txt","w")
saveFile.write(tempData)
saveFile.close



You must be logged in to post. Please login or register an account.



Permission denied is a local computer issue. What is your operating system?

-Harrison 9 years ago

You must be logged in to post. Please login or register an account.


Windows 7. It says "error 13".

-_hacker 9 years ago

You must be logged in to post. Please login or register an account.

Just an error somewhere. It's working now.

-_hacker 9 years ago

You must be logged in to post. Please login or register an account.

Try this :

tempData = 65,43,52
saveFile = open("dataFile.txt","w")
saveFile.write(str(tempData))
saveFile.close()



-alexdotis 8 years ago

You must be logged in to post. Please login or register an account.