Re: Q about the FasterCSV

Eric L. [mailto:[email protected]] :

test.csv

-------------

line 1, “1”

line 2, “2”

And I use the following code snippet to parse this file,

require ‘fastercsv’

FasterCSV.read(“test.csv”)

unfortunately, It failed and complained that:

FasterCSV::MalformedCSVError: Unclosed quoted field on line 1.

it complains on line 1 (probably an un-paired quote).

if you may kindly show contents of csv, pls.

eg

cat test.csv

or

head test.csv

or

dd if=test.csv

kind regards -botp

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs