Christian Genco

ruby

Read a CSV file with Ruby #

require 'csv'

CSV.parse(File.read("table.csv"), headers: true).map(&:to_hash).each{|line|
  p line
  puts line["title"]
}