iOS Question How to save changes in text-file opened with DocumentPickerViewController?

OlavRossland

Member
Licensed User
Longtime User
How can I save changes made in the TextView, to the SAME file that I opened with the DocumentPickerViewController?

Here is the code where I open the file with the DocumentPickerViewController:
B4X:
Sub Button1_Click
    DocumentPicker.InitializeImport("picker", Array("public.text"))
    DocumentPicker.Show(Page1, Button1)
    Wait For Picker_Complete (Success As Boolean, URLs As List)
    If Success Then
        TextView1.Text=(File.ReadString(URLs.Get(0), ""))
    End If
End Sub

After changes to the text in the TextView field, I then want to save the file with the SAME name.
How?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Top