You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Yeah, the issue is that fs.appendFile("log0.txt", d) (and pretty much any 'write' command) iterates over the given array, assuming each element is a byte (even if you supply a UintXYZArray). It makes more sense if you think of what you'd want if you supplied just a simple array like [1,2,3,4].

    All you need to do to write is fs.appendFile("log0.txt", d.buffer)


Avatar for Gordon @Gordon started