CSV Parser

Jan 29, 2010 at 8:27 AM

I'm new to all this, but I have a question about the CSV Parser.  It isn't parsing out the columns and rows correctly unless the last heading (in the first line) is surrounded by single quotes.  Here's two examples.

string csv = "Id, Name,      'Desc'" + Environment.NewLine
     + "0,  Art,       'Art classes'";

Doesn't work:
string csv = "Id,Name" + Environment.NewLine
                + "0,Art";

In the doesn't work example above, debug logs show Col1 = "Id", Col2 = "Name\r\n0", and Col3 = "Art".  So I'm getting all columns and no rows.  Am I missing something here?

Jan 29, 2010 at 5:35 PM

Hi, I'll take a look into this.

Jan 29, 2010 at 7:14 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Jan 29, 2010 at 7:38 PM

This has been fixed in the latest source code. A new version of the binaries,examples,source etc will be repackaged sometime next week.

Thanks for letting me know.