Ruby csv: Difference between revisions

From wikinotes
No edit summary
(No difference)

Revision as of 21:41, 25 February 2021

csv = CSV.new(File.read('out.csv'))
csv.read          # array of rows
csv << [0, 1, 2]  # append row to csv