I have the following code for saving and deleting a file but it doesn’t seem to work. It saves out into the dedicated app document folder and the App can reload it but when I try and delete it, the code runs and the message pops up to say it’s deleted but when you browse the folder it is still there. Same in the simulator and real device. Is there something I’m missing?
Var file As FolderItem
file = SpecialFolder.Documents.Child("CurrentCrossword.CWPMTEXT")
If file <> Nil then
end if
Var f1 As FolderItem = SpecialFolder.Documents.child("CurrentCrossword.CWPMTEXT")
Try
f1.Remove
MessageBox("Default File removed!")
Catch error As IOException
MessageBox(error.Message)
End Try
1 post - 1 participant