I am trying to read a very lengthy(approx. 15K rows) .csv file using require("Storage").read("xxx.csv").
And the next step is to create an array for the values in the .csv file.
However, .split("\r\n") function on require("Storage").read("xxx.csv") gives me an error - see the attached image for the error details.
Is there a way that I could read only say first 200 rows from the .csv at a time? and then the next 200?
I don't see any other API at the moment to read the file in chunks, except .read(), so wanted to confirm.
Pls. note that I am using Espruino emulator and also have some other functionality coded at the moment for the smart watch.
Thanks a lot!
© Espruino, powered by microcosm.
Report a problem