I have written an exporter that exports strings to .csv
Thing is, some of these strings have commas in already:
2 CAR MODELS, 5 TEAMS,2 CAR MODELS, 5 TEAMS
You see that the commas added in the strings by hand have one white space after them. The one I added has no whitespace.
I have written code to read the string and split it:
while ((line = stringReader.ReadLine()) != null)
{
// split the string at each comma
string[] split = line.Split(new char[] { ',' });
What i need is for the string to split at ',' and NOT at ', '.
Any ideas?
I cant use any third party code like this: