It depends on the size of the array I guess, and whether you want it human readable or not.
// write fs.writeFileSync("foo.txt", array.toString()); // read array = new Float32Array(JSON.parse(fs.readFileSync("foo.txt")));
// write fs.writeFileSync("foo.bin", E.toString(array.buffer)); // read array = new Float32Array(E.toArrayBuffer(fs.readFileSync("foo.txt")));
For bigger arrays binary would be better, and for very big arrays you'd be looking at multiple save calls.
@Gordon started
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.
It depends on the size of the array I guess, and whether you want it human readable or not.
Text
Binary
For bigger arrays binary would be better, and for very big arrays you'd be looking at multiple save calls.