title: C# Read from text file separated by commas into 2d array
body: <p>I currently have this:</p>
  
  <pre><code>using (StreamReader sr = new StreamReader("answers.txt"))
  {
      for (iCountLine = 0; iCountLine &lt; 10; iCountLine++)
      {
           for (iCountAnswer = 0; iCountAnswer &lt; 4; iCountAnswer++)
           {
               sQuestionAnswers[iCountLine, iCountAnswer] = 
           }
      }
  }
  </code></pre>
  
  <p>My text file is formatted like this (10 lines of text, with 4 items on each line separated by commas):</p>
  
  <blockquote>
  <pre><code>example, example, example, example 
  123, 123, 123, 123
  </code></pre>
  </blockquote>
  
  <p>I'm not sure what I need after the "=" in the for loop to get it to read and split the contents of the text file into the 2D array.</p>