From: Gagan Shah Date: 2011-08-18T14:00:31+09:00 Subject: Problem in reading txt file, by using CSV I have switched my apps to Rails-3.0.2 & Ruby-1.9.2. I am reading .txt file with tab separated. In the file, there is row like this, [APPLE US USTR80302299 "Elmer Bernstein Sweet Smell of Success" Mainstream Records USTR80302299] Due to the double quotes in one of the column ("Elmer Bernstein Sweet Smell of Success"), its generating error of :- Unclosed quoted field @parsed_file = CSV.open("#{RAILS_ROOT}/private/sales_report_files/#{@file_folder}/#{@sub_file_folder}/#{@file_name.filename}",'r') This file is properly processed on Ruby-1.8.5 & Rails-2.3.8.I have tried many solution, but its giving same error. -- Posted via http://www.ruby-forum.com/.