Ad

Asp.net Convert CSV String To String[]

- 1 answer

Is there an easy way to convert a string from csv format into a string[] or list?

I can guarantee that there are no commas in the data.

Ad

Answer

string[] splitString = origString.Split(',');

(Following comment not added by original answerer)Please keep in mind that this answer addresses the SPECIFIC case where there are guaranteed to be NO commas in the data.

Ad
source: stackoverflow.com
Ad