Splitting a comma delimited text file
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3507498/reading-csv-file">Reading csv file</a>  </p>
</blockquote>



<p>I have a comma delimited file:</p>

<pre><code>"Some Text, More Text", 1, 2, 3,4,5,6
"Random Text, text text", 2,4,5,6,7,8
</code></pre>



<pre><code>var content = reader.ReadLine();
var stringArray = content.Split(',');
</code></pre>

<p>The problem is the text ends up being split into two parts. I want to keep it as one unit. So what are my options?</p>

<p>EDIT: I meant like</p>

<p>Some Text</p>

<p>More Text
1</p>

<p>2</p>

<p>3</p>

<p>4</p>

<p>5</p>

<p>6</p>

<p>I want it like</p>

<p>Some Text,More Text</p>

<p>1</p>

<p>2</p>

<p>3</p>

<p>4</p>

<p>5</p>

<p>6</p>
