mgetl could not read text file with single line data which is greater than ~260,000 characters
Reported by Chin Luh Tan
BUG DESCRIPTION:
----------------
mgetl could not read text file with single line data which is greater than ~300,000 characters, this also affect csvRead.
ERROR LOG:
----------
HOW TO REPRODUCE THE BUG:
-------------------------
how to reproduce:
// Not OK
a = ones(1,300000);
b = strcat(string(a));
mputl(b,'test.txt');
c = mgetl('test.txt');
d = csvRead('test.txt', [],[],'string');
then a is 250,000 mgetl get the string correctly, but when a is 300,000, it return empty string.
on the other hand, file in single column of data working fine.
// OK
a = ones(1,300000);
b = string(a);
mputl(b,'test.txt');
c = mgetl('test.txt');
OTHER INFORMATION:
------------------