Phidippus wrote:
> 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?

There are numerous ways. You might use Marshal, for instance.

YAML is another possibility:

   require "yaml"
   #...
   File.open("myarray","w") {|f| f.puts array.to_yaml }


   # Later on...
   array = nil
   File.open("myarray") {|f| array = YAML.load(f) }


That's just one way.


HTH,
Hal