I red the comments of this code example here:
// failed to write file – bad permissions, bad filename, missing permissions,
or more likely it can't be converted to the encoding
I tried the code and it works on a device without requesting any permission. I couldn't find anything useful in the docs.
So, my question is: what permissions (bad or missing) is the author talking about? Do I need special permissions to write to the app documents directory?