I have been trying to create a simple file using the below code.But I get the error message again and again. I have the full control over the python directory.
myfile = open('sri.txt','w')
myfile.write("My first line written in python \n")
myfile.write("Hello World")
myfile.close()
I get the following error message;
Message File Name Line Position
Traceback
11
IOError: [Errno 13] Permission denied: 'sri.txt'
Please help me to sort out this. I am using windows 7 & python 3.2