I am trying to write a simple class that loads and saves objects to and from a file.
When I try to run this code:
file = open(“/FS/WEB/python/AppSettings.txt”, “w”)
File Operations here
file.close()
I get this error on the open() call:
IOError: [Errno 19] No such device: ‘FS/WEB/python/AppSettings.txt’
I tried manually creating AppSettings.txt and I tried adding a leading slash to the file path but neither helped. Are you not allowed to read/write files in the python directory or am I doing something wrong?