Hi folks,
I'm getting crazy here. I'm trying to read a txt-file as a list using a string for the filename, but it won't work.
If I use this code:
it works, but if I use:
(where ListTitel is "Baumliste") it doesn't.
Could this line be the problem:
What am I doing wrong? Checked the internal folder and the file exists.
Thanks in advance ...
I'm getting crazy here. I'm trying to read a txt-file as a list using a string for the filename, but it won't work.
If I use this code:
B4X:
CurrentList = File.ReadList(File.DirInternal, "Baumliste.txt" )
B4X:
Dim filename As String
filename = ListTitel
CurrentList = File.ReadList(File.DirInternal, filename & ".txt" )
Could this line be the problem:
B4X:
ListTitel = File.ReadString(File.DirInternal,"curlist.txt")
What am I doing wrong? Checked the internal folder and the file exists.
Thanks in advance ...