From: Gregory Brown Date: 2009-03-04T00:14:22+09:00 Subject: Re: How to find the specific row of CSV file. On Tue, Mar 3, 2009 at 8:07 AM, Salil Gaikwad wrote: >  my problem is i am unable to read data correctly when my data-fields > are as follows > "abc", "sdfds"string"ddsfdsf",  "xyz", "pqr" > > it gives me error illegal file format at above line. Please read the CSV RFC before posting more questions. It should clear a lot of things up: http://www.rfc-editor.org/rfc/rfc4180.txt The Ruby CSV library on 1.9 (FasterCSV on 1.8) is very strict about how it parses CSV. If you want something a little more loose, you'll need to roll your own parser. -greg