I have some problems just to write a simple string output to some txt.file.
That is my test code:
test = open('Test.txt', 'w') test.write("Teststring") test.close()
I use Python 2.6.5 and PyScripter
If I direcly enter the code in the IDLE SHELL, sometimes it works, sometimes only the file is generated and sometimes I get this Error message without changing anything in the Code.
>>> test = open('Test.txt', 'w') Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> test = open('Test.txt', 'w') IOError: [Errno 13] Permission denied: 'Test.txt'
I am working with windows 7, could this be some operating system configuration problem?
I have asolutly no idea about this matter.
Edited 6 Years Ago by Brutus2000: n/a