I am in the process of migrating my scripts from python SL4A to QPython (can't get SL4A to work on android lollipop).
I can't save a file to the disk
So I am using:
with open("foo.txt" ,"a") as f:
f.write(theInfo)
And I get
IOError: [Errno 30] Read-only file system: 'foo.txt'
I know what the error means, I just don't know where to save the file...
Thanks for the help,
marbs
The error is saying that you are in a protected part of a file system. That means you may want to save the file in an un-protected part. So, you may want to replace the "foo.txt" part with "/mnt/sdcard/foo.txt" or "/storage/sdcard0/foo.txt" or whatever is the path of internal storage on your phone. Do you understand what am I saying?