|
|
FasterCSV - write tab delimited files
Hi,
I'm using FasterCSV to write out a tab delimited file. For empty
fields, does anyone know if there's a way to not put in empty quotes
("") for nil or blank fields?
Thanks
--
Posted via http://www.ruby-forum.com/.
|
|
0
|
|
|
|
Reply
|
Cs
|
7/1/2010 8:15:19 PM |
|
On Jul 1, 2010, at 3:15 PM, Cs Webgrl wrote:
> I'm using FasterCSV to write out a tab delimited file. For empty
> fields, does anyone know if there's a way to not put in empty quotes
> ("") for nil or blank fields?
The behavior you describe, not quoting empty fields, is the default for =
FasterCSV:
>> require "rubygems"
=3D> true
>> require "faster_csv"
=3D> true
>> FCSV.generate(:col_sep =3D> "\t") { |csv| csv << [1, 2, nil, 4] }
=3D> "1\t2\t\t4\n"
James Edward Gray II=
|
|
0
|
|
|
|
Reply
|
James
|
7/1/2010 8:22:27 PM
|
|
|
1 Replies
873 Views
(page loaded in 0.08 seconds)
Similiar Articles: FasterCSV - write tab delimited files - comp.lang.rubyHi, I'm using FasterCSV to write out a tab delimited file. For empty fields, does anyone know if there's a way to not put in empty quotes ("") f... how to write array value into csv file? - comp.lang.ruby ...FasterCSV - write tab delimited files - comp.lang.ruby how to write array value into csv file? - comp.lang.ruby ... how to write array value into csv file? there is array ... Tab Delimited Export Includes Random Quote Marks - comp.databases ...FasterCSV - write tab delimited files - comp.lang.ruby Tab Delimited Export Includes Random Quote Marks - comp.databases ... If I export a table as a tab delimited file ... How to write to file within awk ? - comp.lang.awkFasterCSV - write tab delimited files - comp.lang.ruby How to write to file within awk ? - comp.lang.awk CSV files - comp.lang.rexx FasterCSV - write tab delimited files ... Very fast delimited record parsing with boost - comp.lang.c++ ...FasterCSV - write tab delimited files - comp.lang.ruby Very fast delimited record parsing with boost - comp.lang.c++ ... Hi ho! Anyone know of a quick way, besides writing ... writing XML - comp.lang.rexxFasterCSV - write tab delimited files - comp.lang.ruby how to write array value into csv file? - comp.lang.ruby ... how to write array value into ... Pulling out fields in a CSV file - comp.lang.awkFasterCSV - write tab delimited files - comp.lang.ruby How to write to file within awk ? - comp.lang.awk CSV files - comp.lang.rexx FasterCSV - write tab delimited files ... Saving variable view contents - comp.soft-sys.stat.spss... question: how do I export the whole content of variable view to a tab delimited file? ... > > > If you use programmability, you can easily write an xml description of ... Tab-delimited records in list-directed READ - comp.lang.fortran ...... to g0 format were intended to go some way >towards allowing writing of CSV files. ... Creating tab delimited files, that is, files where individual records ... Other ... comma delimited values between double quotes - comp.soft-sys.sas ...Tab Delimited Export Includes Random Quote Marks - comp.databases ... If I export a table as a tab delimited file some, but not all, of the ... the array ... to read and write ... FasterCSV - write tab delimited files - comp.lang.ruby | Computer ...Hi, I'm using FasterCSV to write out a tab delimited file. For empty fields, does anyone know if there's a way to not put in empty quotes ("") f... CSV file reading in ruby 1.9 (fastercsv) « The Accidental RubyistFastercsv, which is the default in ruby 1.9, uses a hash for specifying the column separator. Here, we read a tab delimited file and push each ... true), write ... 7/18/2012 11:17:53 AM
|
|
|
|
|
|
|
|
|