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/.