in reply to Writing a CSV Parser/Printer

If these CSV files are being produced by standard tools (eg saved from Microsoft programs), then you have the format wrong.

The escape character for a double quote is actually a double quote. Also don't forget that the interior of a double-quoted string can contain embedded newlines. Furthermore not all fields are double-quoted.

Replies are listed 'Best First'.
Re: Re: Writing a CSV Parser/Printer
by Anonymous Monk on Jun 26, 2003 at 07:54 UTC

    Thanks for the reminder, I forgot about the embedded newlines :).