128
rated 0 times
[
130]
[
2]
/ answers: 1 / hits: 164271
/ 11 Years ago, fri, july 12, 2013, 12:00:00
I have a sample array as follows
var arr = [ [ 1373628934214, 3 ],
[ 1373628934218, 3 ],
[ 1373628934220, 1 ],
[ 1373628934230, 1 ],
[ 1373628934234, 0 ],
[ 1373628934237, -1 ],
[ 1373628934242, 0 ],
[ 1373628934246, -1 ],
[ 1373628934251, 0 ],
[ 1373628934266, 11 ] ]
I would like to write this array to a file such as I get a file as follows
1373628934214, 3
1373628934218, 3
1373628934220, 1
......
......
More From » node.js