you're a genius!! and get this - I even figured out another error I had in there - File.each should of course be file.each

looks like i'm learning after all ;-) 

Thanks a million for your help!!!

-----Original Message-----
From: list-bounce / example.com [mailto:list-bounce / example.com]On Behalf
Of 7stud --
Sent: 09 October 2007 11:58
To: ruby-talk ML
Subject: Re: MATRIX PROBLEMS (AGAIN!)


John Nott wrote:
> Giving me a syntax error in line 18 though (as in the last 'end')
> 
> which is the same even when i remove it!

Well, then add an end.  :)

open("M:\\John N\\RubyTest\\Test.txt") do |file|

    results = []

    File.each do |record|
        results << record.split(",").map{|x| x.to_i}
    end

    p results
    puts

    s=results.size
    s.times do |y|
      s.times do |x|
        print results[y][x],"\t"
      end
      puts
    end


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


#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#####################################################################################