A
Ant 23
Hello all, I'm relatively new to ruby and this forum so I'm not sure I'm
posting this in the right area but here goes. My problem is I have a
file I want to read in, the file contains numbers in a CSV set-up like
so: 2, 3, 15, 25, 29 the numbers are all written out like that 5 per
row. What I want to do is split the numbers into columns that the 2 and
the number under it are all in an array. The main problem I'm having is
that when I try to put the numbers into the array I get a NoMethodError
for the String type which I don't understand since I created the every
method for the Array class not String. I attached the code any
assistance is appreciated.
Attachments:
http://www.ruby-forum.com/attachment/3550/numbers.rb
posting this in the right area but here goes. My problem is I have a
file I want to read in, the file contains numbers in a CSV set-up like
so: 2, 3, 15, 25, 29 the numbers are all written out like that 5 per
row. What I want to do is split the numbers into columns that the 2 and
the number under it are all in an array. The main problem I'm having is
that when I try to put the numbers into the array I get a NoMethodError
for the String type which I don't understand since I created the every
method for the Array class not String. I attached the code any
assistance is appreciated.
Attachments:
http://www.ruby-forum.com/attachment/3550/numbers.rb