Forum: Ruby Re: Q about the FasterCSV

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Peña, Botp (Guest)
on 2006-04-27 07:56
(Received via mailing list)
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
This topic is locked and can not be replied to.