Here is a post that might be related:
I recommend looking at these open source projects to see how to read and write files outside of your app’s local directory.