# build: crystal build --release cr-test.cr require "csv" # get paths src_path, dst_path = ARGV File.open(src_path, "rb") do |src_io| File.open(dst_path, "wb") do |dst_io| CSV.build(dst_io) do |dst| CSV.each_row(src_io) do |row| dst.row(row += (%w{foo} * 2)) end end end end