Can someone help me solve this problem please.
Here is a piece of code out of a larger chunk. It is the relevant piece.
Sub Activity_Create(FirstTime As Boolean)
Dim Reader As TextReader
Reader.Initialize(File.OpenInput(File.DirInternal,"testandroid.txt"))
Dim line As String
line=Reader.ReadLine
Do While line <> Null
It generates an error message
REader.Initialize(File.OpenInput(File.DirInternal,"testandroid.txt"))
java.io.FileNotFoundException:/data/data/testv1.prog/files/testandroid.txt
I have created the file and everything I have read suggests that it should be readable. Of course as a newbie I am probably making some elementary mistake but I would welcome help in finding the solution.
Here is a piece of code out of a larger chunk. It is the relevant piece.
Sub Activity_Create(FirstTime As Boolean)
Dim Reader As TextReader
Reader.Initialize(File.OpenInput(File.DirInternal,"testandroid.txt"))
Dim line As String
line=Reader.ReadLine
Do While line <> Null
It generates an error message
REader.Initialize(File.OpenInput(File.DirInternal,"testandroid.txt"))
java.io.FileNotFoundException:/data/data/testv1.prog/files/testandroid.txt
I have created the file and everything I have read suggests that it should be readable. Of course as a newbie I am probably making some elementary mistake but I would welcome help in finding the solution.