Rodrigo Bermejo wrote:

> What you have is good enough.
> There are a few things which could be better, for example formatting 
> (sprintf), and error reporting, also what I would do is to encapsulate 
> this code into a function so that you can re use it later on.
> 
> def array2D_to_file(array2D,file_name)
> ...
> ..
> end
> 
> my 2 cents

Unfortunately Excel doesn't see the formatted outputs correctly, so I 
don't perform the formatting.

Li

-- 
Posted via http://www.ruby-forum.com/.