> fd = open('/etc/file','w') > > fd.write('jpdas') > > fd.close() > > Hi Bibhu, that is not a Python problem, but a permission one. You should configure the permissions so that you have write access to the folder. However unless you know what you are doing it is discouraged to save your file in the /etc/ folder.
I don't know if on Mac the commands are the same, but in Unix systems (that I guess Mac is) you can manage permissions with chmod. -- http://mail.python.org/mailman/listinfo/python-list