Basically I'm reading a large csv file, and it has some mistakes. Few of the columns are separated by dot instead of comma. Does anyone know of a way to still run those lines ?
example mistake on line two between "test". "test":
CSV.foreach("#{Rails.root}/tmp/test.csv") do |row|
puts "Mrs","test","test","U26453"
puts "Mr","test"."[email protected]","U50406" - CSV::MalformedCSVError: Missing or stray quote in line 2
end
Thank you