Thanks very much Luc, here are a few follow up questions (complete
here’s the columns as arrays
@column1 =  # should this be @column1=[variable1] or just the
empty square brackets?
open file in read mode ®
file = File.new("<your_filename", “r”)
read each line one after another and process it
file.each_line do |line| # where do I specify how the header is to
be skipped, how many lines to
#be skipped or otherwise processed?
# process as header if necessary
# extract your variables in the line into an array
array = line.split("<your_column_separator>") # I am guessing that
a space column separator
#would be " ", does it work with arbit number of multiple spaces
between the columns i.e. if the
#column width is variable but between two
columns there are one or several spaces?
# assign variable to column
@column1 << array
if @column1=[variable1] comment in the second line of the above code
was not correct, then
#where do the variables get their names?
# … process other columns