From: Chris Hulan Date: 2006-07-13T04:40:26+09:00 Subject: Re: Appending to a CSV file James Gray wrote: > On Jul 12, 2006, at 1:55 PM, Chris Hulan wrote: > >> it seems CSV only supports 'r','rb','w','wb' for open. >> FasterCSV delegates to an IO object and supports all IO's modes. >> So it would be the winner > > Interestingly, this design choice in FasterCSV has been questioned in > the past. I just keep liking it more and more though as issues like > this arise. :) > > James Edward Gray II It does seem a bit odd that CSV limits the modes. On the other hand, the desired result can be achieved by creating a new file, copy existing data, add the new data, delete (or rename to be safe) the original and rename the new file to the old file name. I think supporting the append mode is easier all round... cheers Chris -- Posted via http://www.ruby-forum.com/.