title: Splitting strings and CSV C#
body: <p>I have written an exporter that exports strings to .csv</p>
  
  <p>Thing is, some of these strings have commas in already:</p>
  
  <pre><code>2 CAR MODELS, 5 TEAMS,2 CAR MODELS, 5 TEAMS
  </code></pre>
  
  <p>You see that the commas added in the strings by hand have one white space after them. The one I added has no whitespace.</p>
  
  <p>I have written code to read the string and split it:</p>
  
  <pre><code>while ((line = stringReader.ReadLine()) != null)
          {
              // split the string at each comma
              string[] split = line.Split(new char[] { ',' });
  </code></pre>
  
  <p>What i need is for the string to split at ',' and NOT at ', '.</p>
  
  <p>Any ideas?</p>
  
  <p>I cant use any third party code like this:</p>
  
  <p><a href="http://www.codeproject.com/KB/database/CsvReader.aspx" rel="nofollow">http://www.codeproject.com/KB/database/CsvReader.aspx</a></p>