On Sat, Nov 23, 2013 at 7:44 AM, Greg Hajdu <lists / ruby-forum.com> wrote:
> numbers = Array.new
>
> File.open ('numbers.txt') do |doc|
>   doc.each_line do |line|
>      nums = line.split(" ")

at this point, num is an array of "stringified" numbers

>      numbers.push(nums)

at this point, you push the whole array of num

>    end
> end
>

tip: do it slowly, one at at time. irb session is good enough w some
printout/debugging included.  if this is for production code,  much
better if you include tests..

best regards -botp