Hello everyone.

I'm working on script here and I need do read the 1st and the 10th
columns on a file like this

R357    10011G1   0 0.0   0 0 0.0 381654.8 7993255.6 827.9  1235959

As reference I used the code found in this post:
http://www.ruby-forum.com/topic/161462#new

The difference is on that snippet the user only wanted to read the first
column, so I tried something like this

file = File.open(" ")
columns = []
file.each_line do |line|
columns << line.split(" ")[0 , 11]
end

p columns

Aparently It reads every column from 0 to 11

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