Thanks, works great!!

If I want to parse some columns as floats, some as ints, and leave the 
rest alone, is this the best way to do it?

  table = FCSV.parse(open(csv_filename),
  :headers    => true,
  :converters => lambda { |f, info|
    case info.header
    when "NUM"
      f.to_i
    when "RATE"
      f.to_f
    else
      f
    end
  })

How do I write the finished file? My attempts appear without headers in 
the csv file?


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