RAA - csv

THIS PAGE IS FOR PROJECT OWNER

Please see http://raa.ruby-lang.org/project/csv for users.

csv / 1.2.2+

Short description: CSV format parser / generator
Category: Library/Text
Status: stable
Created: 2002-12-31 15:00:00 GMT
Last update: 2004-06-07 08:35:11 GMT
Owner: NaHi (Projects of this owner)
Homepage: http://dev.ctor.org/doc/csv/
Download: http://dev.ctor.org/download/csv-1_2_2.tar.gz
License: Ruby's
Dependency:
None
Description:

Ruby library to parse or generate data in CSV format.
Attached unit test covers 99.8% of source code line.

CVS: http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/lib/csv/

- Changes in 1.2.2 (September 15, 2003 - version 1.2.2)

Add extra pamameter to specify row(record) separater character. To parse
Mac's CR separated CSV, do like this.

CSV.open("mac.csv", "r", ?,, ?\r) { |row| p row.to_a }

The 3rd parameter in this example ?, is for column separater and the 4th
?\r is for row separater. Row separater is nil by default. Nil separater
means "\r\n" or "\n".