I have an array myArray
on the geth command line of 1000 elements. When I type myArray
on the geth console, it prints to screen. I'd like to pipe this to a text file. My development setup uses testrpc and go-ethereum with analysis of post-scripts in Python.
At the moment I'm cutting and pasting from geth. I sense there may be a much better way of doing it, but can't seem to find an example on searching.
Is there a simple way to save an array to file from the go-ethereum javascript command line?
geth attach rpc:http://localhost:8545
? Thanks