On my server file system I have a directory which contains some .bin file filled with 16 bit integers. How can I load a Uint16Array variable with the content of a specific .bin file in Node.js?
I already tried:var arrayFromBinFile = new Uint16Array('./myDirectoryContainingBinFiles/selectedFile.bin')
but unfortunately it doesn't seem to work.
Aucun commentaire:
Enregistrer un commentaire