When reading csv files with StringUtils.Loadcsv I don't have any problem for files smaller than ± 2 MB. Larger files let the program crash.
I read on this forum that one should use Textreader. I did but still with larger files still let the program crash.
Does anybody knows how i can solve this?
This is de code I used to read the csv file:
B4X:
Dim Reader As TextReader
Reader.Initialize(File.OpenInput(File.DirRootExternal, "test4.csv"))
Dim line As String
line = Reader.ReadLine
List1.Initialize
Do While line <> Null
Dim LineArray() As String
LineArray = Regex.Split(";", line)
List1.Add(LineArray)
line = Reader.ReadLine
Loop