iOS Question File.Readlist problem

John Sturt

Active Member
Licensed User
Longtime User
Hello All
I have some translation files in UTF 8 format and am trying to use
B4X:
TheList = File.ReadList (dir,Filename)

The files are being limited to 99 lines / entries which throws
run time out of bounds errors.
How do i load a file of > 99 lines?
Any solutions?
 

John Sturt

Active Member
Licensed User
Longtime User
Hello
I have discovered that the ReadList does not recognize blank lines in the text file.
I assume that is due to character end of line codes.
Thank you i can now fix this.
 
Upvote 0

John Sturt

Active Member
Licensed User
Longtime User
Hello
I took a very practical and stabel solution but not a very clever one.
I replaced the blank line with a code that the App will process and create the desired blank lines.
i.e.
...
Some text in file
[blank line]
Some more text
...

I assume their is a encoding solution to this but i needed a solution to work
on all systems and with a variety of character tables.

John.
 
Upvote 0
Top