Am using the excellent FileHelpers library to parse a number of different files. One of these files has (some) lines that look like this
id|name|comments|date
01|edov|bla bla bla bla|2012-01-01
02|john|bla bla bla bla|2012-01-02
03|Pete|bla bla <NEWLINE>
bla bla|2012-03-01
04|Mary|bla bla bla bla|2012-01-01
Note that line with id 3 has a newline in the text. Also note the comments are not surrounded by quotes so [FieldQuoted('"', MultilineMode.AllowForRead)]
isn't going to save me.
Filehelpers throws an exception on line 4:
Delimiter '|' not found after field 'comments' (the record has less fields, the delimiter is wrong or the next field must be marked as optional).
Is there anyway I can parse this file with FileHelpers?