[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Parsing a CSV file having multiple records in RUBY

Krishna Mundra

12/26/2006 7:35:00 AM

Hi everyone,
Can anyone help me in parsing a CSV file,with comma seperated multiple
records (multiple columns and multiple rows)....

Can anyone solve my problem,Its urgent

--
Posted via http://www.ruby-....

2 Answers

Jano Svitok

12/28/2006 10:32:00 AM

0

On 12/26/06, Krishna Mundra <krishna_mundra82@rediffmail.com> wrote:
> Hi everyone,
> Can anyone help me in parsing a CSV file,with comma seperated multiple
> records (multiple columns and multiple rows)....

http://ruby-doc.org/stdlib/libdoc/csv/rdoc/...
http://www.oreillynet.com/ruby/blog/2006/02/faster_csv_with_fast...
http://rubyforge.org/projects/...

Drew Olson

12/28/2006 3:39:00 PM

0

Krishna Mundra wrote:
> Hi everyone,
> Can anyone help me in parsing a CSV file,with comma seperated multiple
> records (multiple columns and multiple rows)....
>
> Can anyone solve my problem,Its urgent

require 'faster_csv'

FCSV.foreach('myfile.csv') do |row|
#work with row here
end

--
Posted via http://www.ruby-....