Article:
  Building Unix Tools with Ruby
Subject:   Ruby CSV class
Date:   2006-10-13 16:27:54
From:   shadowbq
4/10 Agree
You could of done alot better with using standard libraries.. such as csv.rb
Maybe do an array of hashes that can use sort_by?



require 'csv'
CSV.open('csvfile.csv', 'r') do |row|
p row
end


And the IO class for reading.. come on.


docs:
http://www.ruby-doc.org/stdlib/libdoc/csv/rdoc/index.html
http://www.ruby-doc.org/core/classes/IO.html