James Gray wrote:
> On Sep 19, 2008, at 10:41 PM, Li Chen wrote:
> 
>> Is it posssible to update a field  of CSV file using Fastercsv?  For
>> example:
>> change a row [1,2,3,4] to [10,2,3,4].
> 
> Sure.  You would do this as you would change any file.  Here are the
> steps:
> 
> 1.  Open the existing data for reading
> 2.  Open a different file for writing
> 3.  Copy over the content making changes as needed
> 4.  Rename the new file to replace the old file
> 
> Hope that helps.
> 
> James Edward Gray II

Hi James,

Thank you very much.

One more question: Is this the same idea behind what we do with 'save' 
or 'save as' in microsofte WORD or EXCEL?

Li

-- 
Posted via http://www.ruby-forum.com/.