# Parsing a CSV file having multiple records in RUBY

**URL:** <https://www.ruby-forum.com/t/parsing-a-csv-file-having-multiple-records-in-ruby/80409>\
**Category:** Ruby\
**Created:** [December 26, 2006, 8:35am UTC](https://www.ruby-forum.com/t/parsing-a-csv-file-having-multiple-records-in-ruby/80409 "2006-12-26T08:35:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mundrakrishna](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/73ab20/32.png) [@mundrakrishna](https://www.ruby-forum.com/u/mundrakrishna)\
**Post date:** [December 26, 2006, 8:35am UTC](https://www.ruby-forum.com/t/parsing-a-csv-file-having-multiple-records-in-ruby/80409/1 "2006-12-26T08:35:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mundrakrishna](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/73ab20/32.png) [@mundrakrishna](https://www.ruby-forum.com/u/mundrakrishna)\
**Post date:** [December 28, 2006, 11:33am UTC](https://www.ruby-forum.com/t/parsing-a-csv-file-having-multiple-records-in-ruby/80409/2 "2006-12-28T11:33:32Z")

</div>

On 12/26/06, Krishna M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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/index.html](http://ruby-doc.org/stdlib/libdoc/csv/rdoc/index.html)

> **[O'Reilly Media - Technology and Business Training](https://www.oreilly.com)**
>
> Gain technology and business knowledge and hone your skills with learning resources created and curated by O'Reilly's experts: live online training, video, books, our platform has content from 200+ of the world's best publishers.

[http://rubyforge.org/projects/fastercsv/](http://rubyforge.org/projects/fastercsv/)

---

<div class="post-metadata">

**Author:** ![mundrakrishna](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/73ab20/32.png) [@mundrakrishna](https://www.ruby-forum.com/u/mundrakrishna)\
**Post date:** [December 28, 2006, 4:38pm UTC](https://www.ruby-forum.com/t/parsing-a-csv-file-having-multiple-records-in-ruby/80409/3 "2006-12-28T16:38:36Z")

</div>

Krishna M. 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
