I have a b4j application that has to split a text after each line. Now the input files have different control characters at the line end:
a) 0x0D 0x0A (char(10) and char(13))
b) only 0x0A (char(10)
Now I do something like this:
Unfortunately this leads to wrong results. Because files with the 0x0D 0x0A line endings keep the 0x0D.
Does anybody know of a good solution to this?
Regards David
a) 0x0D 0x0A (char(10) and char(13))
b) only 0x0A (char(10)
Now I do something like this:
B4X:
array = Regex.Split(CRLF,myText)
Unfortunately this leads to wrong results. Because files with the 0x0D 0x0A line endings keep the 0x0D.
Does anybody know of a good solution to this?
Regards David