It is a project with B4XPages. (if it is important)
I know that it is a mistake to use things like file.exists with assets. But in this case I just want to read a text file.
I changed the text in the asset (same filename, new text), but when reading it shows the old text.
I deleted the asset and add it new in the IDE. In the "files" folder there is the new text and when opening in IDE "Open with default program" it shows the new text.
Also tried "clean project", "restart ADB Server" and closing the IDE.
But when opening the asset file in code, there is still the old one.
I know that it is a mistake to use things like file.exists with assets. But in this case I just want to read a text file.
I changed the text in the asset (same filename, new text), but when reading it shows the old text.
I deleted the asset and add it new in the IDE. In the "files" folder there is the new text and when opening in IDE "Open with default program" it shows the new text.
Also tried "clean project", "restart ADB Server" and closing the IDE.
But when opening the asset file in code, there is still the old one.
B4X:
Sub Button2_Click
Dim sABC As String = File.ReadString(File.DirAssets, "abcTest1.txt")
Log(sABC) 'still old text (not the one in asset file)
pgPlay.Show(sABC)
'B4XPages.ShowPage("pgPlay")
End Sub