the record I am attempting to split is formatted like the following:
987,"This is second field, it contains multiple commas, but is enclosed in quotes, 88123, 99123", 1221, lastfield
I am using the code:
char[] delimiters = new char[] {',' };
string[] parts = line.Split(delimiters, StringSplitOptions.None);
I get split results but it does not treat the quote delimited field as one field. I need to get a result of 4 fields but am getting a field for each comma. How can I adjust/change code to get the results I need?