Re: Q about the FasterCSV


#1

Eric L. [mailto:removed_email_address@domain.invalid] :

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