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
On Oct 23, 2007, at 8:57 AM, Surjit N. 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 G. II
James G. wrote:
On Oct 23, 2007, at 8:57 AM, Surjit N. 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 G. 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
On Oct 23, 2007, at 9:11 AM, Surjit N. wrote:
installation version "rubygems-0.9.4 "
If not from where can i install Fastercsv
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 G. II
I am working on windows OS can you please gimme the syntax i have to use
in command prompt to install it
Thanks a lot… It is working now… I am a newbie so i will be back
with lot of q’s