From: gabriele renzi Date: 2004-03-11T05:59:37+09:00 Subject: Re: saving array il 10 Mar 2004 12:36:16 -0800, mopthisandthat@hotmail.com (Phidippus) ha scritto:: >After I do bunch of computations and create a huge array with bunch of >numbers, I like to use the already-computed array in another program >rather than re-computing it each time I run the program. How can I >save the array object in one program and read it from another program >in ruby? $irb irb(main):001:0> Marshal.dump([1,2,3],open('ary.dat','w+')) => # irb(main):002:0> exit $ls -l ary.dat -rw-r--r-- 1 gabriele Administ 10 Mar 10 20:55 ary.dat $irb irb(main):001:0> Marshal.load(open('ary.dat')) => [1, 2, 3]