# Re: Appending to a CSV file

**URL:** <https://www.ruby-forum.com/t/re-appending-to-a-csv-file/98109>\
**Category:** Ruby\
**Created:** [July 12, 2006, 4:39pm UTC](https://www.ruby-forum.com/t/re-appending-to-a-csv-file/98109 "2006-07-12T16:39:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [July 12, 2006, 4:39pm UTC](https://www.ruby-forum.com/t/re-appending-to-a-csv-file/98109/1 "2006-07-12T16:39:44Z")

</div>

> 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.
