Re: Appending to a CSV file

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”. :slight_smile:

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs