mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
re-formatted wrongly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d3b780b1cf
commit
6d779ac139
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ Mon Sep 15 19:02:52 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
|
|||
|
||||
* lib/csv.rb: 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 }
|
||||
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".
|
||||
|
|
Loading…
Reference in a new issue