From: John Mcleod Date: 2010-02-03T04:42:30+09:00 Subject: Re: Writing to database row based on column name with FasterCSV. Thanks James for the reply. I need to add default values (0) to 2 columns that are not in the csv. For example, Column 1, Column 2, New Column 1, New Column 2 --------- --------- ------------- ------------ Row 1 csv value csv value 0 0 When I go to create a row, I want to check for these column headers and write to the table with a zero. I'm not sure if it's easier to write to the csv first, adding the columns, then parsing to the database or just do it all at once. John -- Posted via http://www.ruby-forum.com/.