Hi all,
I do have a short question:
I want to fill up a tableview with values stored in a comma separated ascii file. The file valus look like:
...
Value,Value,Value
...
Values can be empty.
Now it try to read the file and import the data into a tableview using the following code:
The log display correctly the first value, but it seems, that str(1) and str(2) are empty.
What do i wrong ?? I am struggeling with this since 2 days !!
Thanks for your help in advance
GuenterL
I do have a short question:
I want to fill up a tableview with values stored in a comma separated ascii file. The file valus look like:
...
Value,Value,Value
...
Values can be empty.
Now it try to read the file and import the data into a tableview using the following code:
B4X:
Dim line As String
Dim str() As String
If fileName <> "" Then
Reader.Initialize(File.OpenInput("", fileName))
Do While line <> Null
line = Reader.ReadLine
str = Regex.Split(",", line)
Log(str(0))
TableView1.Items.Add(str)
Loop
Reader.Close
End If
The log display correctly the first value, but it seems, that str(1) and str(2) are empty.
What do i wrong ?? I am struggeling with this since 2 days !!
Thanks for your help in advance
GuenterL
