iOS Question [SOLVED] Storing a text file for later access

sorex

Expert
Licensed User
Longtime User
Hello,

Is there a way to store a textfile for later access by the user?

I'm using a simple file.writestring to file.dirdocuments but how on earth am I able to see this file?

I don't seem to have a filebrowser on my iphone4 and the itunes pc app doesn't show anything either.
 

sorex

Expert
Licensed User
Longtime User
ok, figured it out.

I had to enable file sharing for my app.

And only store the to be shared file in file.dirdocuments. All the rest should be hidden in file.dirlibrary.

I added a copy/delete routine at app start to move things to the library folder to prevent loss of data due to path changes exept for the file that needs to be there.
 
Upvote 0
Top