Split String in C#
<p>I thought this will be trivial but I can't get this to work. </p>

<p>Assume a line in a CSV file:
<code>"Barack Obama", 48, "President", "1600 Penn Ave, Washington DC"</code></p>

<p><code>string[] tokens = line.split(',')</code></p>

<p>I expect this:</p>

<pre><code> "Barack Obama"
 48
 "President"
 "1600 Penn Ave, Washington DC"
</code></pre>

<p>but the last token is 
    <code>'Washington DC'</code> not 
    <code>"1600 Penn Ave, Washington DC"</code>.</p>

<p>Is there an easy way to get the split function to ignore the comma within quotes?</p>

<p>I have no control over the CSV file and it doesn;t get sent to me. Customer A will be using the app to read files provided by an external individual.</p>
