Possible Duplicate:
CSV parser/reader for C#?
I want to split the text using the Split
function:
string str = "ZBEE10364,\"Cobler, CHARLOTTE J\",Whiskey,,Brandy,0:00:00,20110912,CHECK,2918,117.33,1,117.33,0,EDM0,Yu789";
string[] strArr = str.Split(',');
This works fine but "Cober
and "CHARLOTTE
are in different records. I don't want that. It is a CSV file and when I open it using Excel it works perfectly.
Cobler, CHARLOTTE J
appears in a single column. How can I solve this?