Hi. Can you help me with this code:
Sub sample
Dim read,read1 As String
read=File.GetText(File.DirAssets,"cfg.txt")
Msgbox(read,"Testing")' value is file.txt and is ok
read1=File.GetText(File.DirAssets,read)
' Error
' java.io.FileNotFoundException: /data/user/0/direction.slide.id/files/virtual_assets/file.txt: open failed: ENOENT (No such file or directory)
End Sub
I cannot use a variable to use with File.GetText and load a file, but if i use a predefined value (ex: "cfg.txt") it works….any suggestion?
thanks,
Jose
Sub sample
Dim read,read1 As String
read=File.GetText(File.DirAssets,"cfg.txt")
Msgbox(read,"Testing")' value is file.txt and is ok
read1=File.GetText(File.DirAssets,read)
' Error
' java.io.FileNotFoundException: /data/user/0/direction.slide.id/files/virtual_assets/file.txt: open failed: ENOENT (No such file or directory)
End Sub
I cannot use a variable to use with File.GetText and load a file, but if i use a predefined value (ex: "cfg.txt") it works….any suggestion?
thanks,
Jose