I can save a config text file with the following code, however the file is deleted with each update of the app. I need to be able to export a text file with config information outside of the standard app folders, so that I can import it again, after the app was updated.
This code saves the config, but it is not protecting it from updates:
Var json As String = im.ConfigToJson
Var f As FolderItem = SpecialFolder.Documents.Child("config.txt")
Var tos As TextOutputStream = TextOutputStream.Create(f)
tos.WriteLine json
tos.Close
I imagine I could save it in a way that lateron it could be found with the files app “on my iPhone”.
How do you do such thing?
5 posts - 3 participants