From: Nick Hoyle Date: 2009-02-17T01:39:14+09:00 Subject: Re: Parsing CSV file into a database Ok great! will do Nick James Gray wrote: > On Feb 16, 2009, at 9:57 AM, Nick Hoyle wrote: > >> ok thanks thats great, thanks for the quick response. Have you any >> sample code or examples that you could possible provide me? > > It's probably as simple as: > > require "open-uri" > require "rubygems" > require "faster_csv" > open("url goes here") do |csv| > FCSV.new(csv).each do |row| > # load row into database here... > end > end > > Give it a shot and come back with specific questions when you get stuck. > > James Edward Gray II -- Posted via http://www.ruby-forum.com/.