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.
6087a044557d6b59ab52e7dd20f94da8?d=identicon&s=25 Peña, Botp (Guest)
on 2006-04-27 05:56
(Received via mailing list)
Eric Luo [mailto:eric.wenbl@gmail.com] :

# 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.