From: Salil Gaikwad Date: 2009-03-03T22:07:54+09:00 Subject: Re: How to find the specific row of CSV file. Hi all i am using following method to read the csv file and i want to save it into the database. @parsed_file=CSV.open("filename.csv",'r',"#{col_sep}") @parsed_file.each_with_index do |row, index| // more code here end end 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. Regards Salil -- Posted via http://www.ruby-forum.com/.