From: Nathan Sharkey Date: 2010-03-31T23:29:06+09:00 Subject: Re: uninitialized constant CSV::Reader Brian Candler wrote: > Nathan Sharkey wrote: > >> require 'csv' >> >> CSV::Reader.parse(File.open('stuff.csv', 'rb')) do |row| > ... >> NameError: uninitialized constant CSV::Reader > ... >> any ideas?? > > Perhaps you have another file called csv.rb which is earlier in your > $LOAD_PATH > > (If your own program is called csv.rb, that would the the culprit :-) > > In any case, you'd probably be better off with the fastercsv gem. Hi, thanks for response, Fastercsv actually quits with the following notice which made me try CSV::Reader in the first place :-) "Please switch to Ruby 1.9's standard CSV library. It's FasterCSV plus support for Ruby 1.9's m17n encoding engine." I havn't created any csv.rb file and I'll check loadpath but I would be happy to use FasterCSV if anyone can suggest how i do this given the above notice. cheers -- Posted via http://www.ruby-forum.com/.