I wanted to read a csv file and do some manipulation on it so i tried
writing a small program but i get this error
##########T his is the program
require "faster_csv"
FasterCSV.foreach("C:\\rubyprograms\\Input.csv") do |row|
# use row here...
puts row
end
########## This is the error
trialread.rb:1:in `require': no such file to load -- faster_csv
(LoadError)
from trialread.rb:1
Please help on what mistake i am commiting
···
--
Posted via http://www.ruby-forum.com/.
Have you installed FasterCSV? If so, you are probably just missing:
require "rubygems"
at the top of your file.
James Edward Gray II
···
On Oct 23, 2007, at 8:57 AM, Surjit Nameirakpam wrote:
I wanted to read a csv file and do some manipulation on it so i tried
writing a small program but i get this error
##########T his is the program
require "faster_csv"
FasterCSV.foreach("C:\\rubyprograms\\Input.csv") do |row|
# use row here...
puts row
end
########## This is the error
trialread.rb:1:in `require': no such file to load -- faster_csv
(LoadError)
from trialread.rb:1
Please help on what mistake i am commiting
It's not included with RubyGems, no. But you can use gems to install it by feeding your command-line something like:
gem install fastercsv
You may need to put an sudo in front of that if you're on Unix.
James Edward Gray II
···
On Oct 23, 2007, at 9:11 AM, Surjit Nameirakpam wrote:
James Gray wrote:
On Oct 23, 2007, at 8:57 AM, Surjit Nameirakpam wrote:
########## This is the error
trialread.rb:1:in `require': no such file to load -- faster_csv
(LoadError)
from trialread.rb:1
Please help on what mistake i am commiting
Have you installed FasterCSV? If so, you are probably just missing:
require "rubygems"
at the top of your file.
James Edward Gray II
I am a new to Ruby... Does FasterCSV comes by default with Ruby gems
installation version "rubygems-0.9.4 "
If not from where can i install Fastercsv
I am working on windows OS can you please gimme the syntax i have to use
in command prompt to install it
···
--
Posted via http://www.ruby-forum.com/.
Thanks a lot.... It is working now.. I am a newbie so i will be back
with lot of q's
···
--
Posted via http://www.ruby-forum.com/.