From: Frank Guerino Date: 2009-10-08T02:38:42+09:00 Subject: Re: read CSV file using csv library Marvin G端lker wrote: >> Frank > > You can do this via the command-line tool RubyGems. Try: > # gem install fastercsv > > I'm not familiar with Macs, but that should do it. To learn more about > RubyGems, visit: http://docs.rubygems.org/ > > Marvin > > PS: And add the line > require "rubygems" > to your scripts if you're using Ruby 1.8. Hi Marvin, Thanks for the quick reply. I installed fastercsv using the command you described and there were no issues, so it seems to have installed propertly. Next, I wrote the following code: require "rubygems" csvData = FasterCSV.read("./dataInput3.csv") myString = csvData[0][0] puts myString When I run "ruby -cw fasterCSV.rb" I get syntax ok. However, when I run the script I get an error that states "uninitialized constant FasterCSV (NameError)" Is there anything special I need to do to initialize the class? Thanks, Frank -- Posted via http://www.ruby-forum.com/.