@Gordon Apologies, for not providing code reference.
My code for readline is now working as expected after I added the \n back to the code. Don't remember how it went missing but my bad.
I don't have a read in my code. When I was mistakenly writing logs without linebreaks, the WebIDE functionality of downloading a file was also failing.
My question should have been framed, why was read function used by WebIDE failing to download a large file.
var i = 10000;
var file = require("Storage").open("test", "a");
while (i > 0){
var sentence = "Long string of gibberish";
file.write(sentence);
i--;
}
file = null;
If you create a file using the above code and try to download the file using WebIDE, the download fails.
Thank you very much for your stellar support and responses so far. Did not mean to annoy you.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@Gordon Apologies, for not providing code reference.
My code for
readline
is now working as expected after I added the\n
back to the code. Don't remember how it went missing but my bad.I don't have a
read
in my code. When I was mistakenly writing logs without linebreaks, the WebIDE functionality of downloading a file was also failing.My question should have been framed, why was
read
function used by WebIDE failing to download a large file.If you create a file using the above code and try to download the file using WebIDE, the download fails.
Thank you very much for your stellar support and responses so far. Did not mean to annoy you.