Is there a better way to read data from a file into Float32Array than this ?
var f = E.openFile("myTestF.idx","r");
f.skip(4);
var b = new Float32Array(E.toUint8Array(f.read(4)).buffer);
var c = new Float32Array(E.toUint8Array(f.read(8)).buffer);
f.close();
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.
Is there a better way to read data from a file into Float32Array than this ?