If you want to iterate over CSV file in Ruby, CSV#foreach is your friend. CSV.foreach('data.csv', headers: true).with_index do |row, i|.
確定! 回上一頁