Skip to content

Instantly share code, notes, and snippets.

@ngauthier
Created April 30, 2010 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ngauthier/385614 to your computer and use it in GitHub Desktop.
Save ngauthier/385614 to your computer and use it in GitHub Desktop.
ree-1.8.7-2010.01 > require 'rubygems'
=> true
ree-1.8.7-2010.01 > require 'fastercsv'
=> true
ree-1.8.7-2010.01 > FasterCSV.open('test.csv', 'w') do |csv|
ree-1.8.7-2010.01 > csv << ["this", "is", "test, or not"]
ree-1.8.7-2010.01 ?> end
=> <#FasterCSV io_type:File io_path:"test.csv" lineno:1 col_sep:"," row_sep:"\n" quote_char:"\"">
File contains:
this,is,"test, or not"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment