In an upcoming market update, I am trying to replace a file that users already have stored in their DirInternal folder from original install. However this code doesn't seem to update the existing file:
:sign0163:
B4X:
Sub FileReplace
Dim File1 As String
File1 = Map1.Get("File1Status")
If File1 <> "updated" Then
File.Delete(File.DirInternal,"File1.txt")
File.Copy(File.DirAssets,"File1.txt",File.DirInternal,"File1.txt")
Map1.Put("File1Status","updated")
File.WriteMap(File.DirInternal,"Map.dat",Map1)
End If
End Sub
:sign0163: