文档示例:
require 'csv' CSV.open("path/to/file.csv","wb") do |csv| csv << ["row","of","CSV","data"] csv << ["another","row"] # ... end
CSV.open("t.csv","ab") do |csv|