# Appending to a CSV file

**URL:** <https://rubytalk.org/t/appending-to-a-csv-file/28890>\
**Category:** ruby-talk\
**Created:** [12 July 2006 14:37 UTC](https://rubytalk.org/t/appending-to-a-csv-file/28890 "2006-07-12T14:37:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Berger\_Daniel1](https://avatars.discourse-cdn.com/v4/letter/b/ecc23a/32.png) [@Berger\_Daniel1](https://rubytalk.org/u/Berger_Daniel1)\
**Post date:** [12 July 2006 14:37 UTC](https://rubytalk.org/t/appending-to-a-csv-file/28890/1 "2006-07-12T14:37:51Z")

</div>

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.

> **···**
>
> > -----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?
