I have an array that say for the example looks like that:
var position = [1,3,4,6];
I want to serialize the array to a file, let say position.txt.
Than I want to load the data saved to another running JS program, something like this:
var position = loadArrayFromFile("position.txt");
Is there something that I can use to do that?
JSON.stringifyon writing andJSON.parseorrequireon reading.