I need to read a text file.
For the progressbar to work, I need to know the number of lines scount.
If the number of lines is less than 90,000, then everything works, but if, for example, there are 1,500,000 lines, the application crashes on line #4.
What restrictions might there be?
For the progressbar to work, I need to know the number of lines scount.
B4X:
Try
Dim rd As TextReader:
rd.Initialize(File.OpenInput(Starter.myFolder, FileName))
scount=Regex.Split(CRLF,rd.ReadAll).Length
rd.Close
Catch
Log(LastException)
End Try
What restrictions might there be?