I have following code:
CSV.open("File.csv", \'r+\', { :col_sep => \':\' } ) do |line| loop do malformed_csv = false begin