> -----Original Message-----
> From: Bil Kleb [mailto:Bil.Kleb / NASA.gov] 
> Sent: Wednesday, July 12, 2006 8:35 AM
> To: ruby-talk ML
> Subject: Appending to a CSV file
> 
> 
> Just got a call from a telecommuting colleague
> who's using Ruby to automate a bunch of CEV[1]
> CFD[2] simulations.
> 
> She says that she can't figure out how to /append/
> to a CSV file using Ruby's standard library.
> 
> Does anyone have the magic recipe, or should
> she be using FasterCSV instead?

File.open(file, 'a+') ???

Or, did you mean, she wants to append data to the end of each record?

As for using FasterCSV, I would be inclined to vote "yes". :)

Regards,

Dan


This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly 
prohibited and may be unlawful.  If you have received this communication 
in error, please immediately notify the sender by reply e-mail and destroy 
all copies of the communication and any attachments.