title: How to properly split a CSV using C# split() function?
body: <p>Suppose I have this CSV file :</p>
  
  <pre><code>NAME,ADDRESS,DATE
  "Eko S. Wibowo", "Tamanan, Banguntapan, Bantul, DIY", "6/27/1979"
  </code></pre>
  
  <p>I would like like to store each token that enclosed using a double quotes to be in an array, is there a safe to do this instead of using the String split() function? Currently I load up the file in a RichTextBox, and then using its Lines[] property, I do a loop for each Lines[] element and doing this :</p>
  
  <pre><code>string[] line = s.Split(',');
  </code></pre>
  
  <p>s is a reference to RichTextBox.Lines[].
  And as you can clearly see, the comma inside a token can easily messed up split() function. So, instead of ended with three token as I want it, I ended with 6 tokens</p>
  
  <p>Any help will be appreciated!</p>