CSV is a very convenient file format for data computing, processing, plotting, etc.
It can be imported or exported to/from excel.
Ruby has a strong built-in support for CSV.
Prior to Ruby 1.8.6, the built-in csv library in Ruby is csv, not very good nor efficient.
Fastcsv replace old csv after Ruby 1.8.7. I recommend to use fastercsv with Ruby for csv processing.
For 1.8.6 to run fastercsv. Either use rubygem to install: do “sudo gem install fastercsv”.
It does not work for me. I download the gem from Rubyforge, then do sudo gem install fastercsv.
When use fastercsv, do “require ‘rubygems’, then require ‘fastercsv’.
fastercsv has three different classes (format): csv, table, row
沒有留言:
張貼留言