Python error when opening file with:
f = open(file, "w")
but it does open with:
f = open(file, "r")
1- file is closed when running my app
2- app is running as administrator
3- file is not set as read only and should have the write permission (using windows)
and still I am getting this error:
[Errno 13] Permission denied: 'file.txt'
I couldn't fix the problem if anyone have any idea please let me know.