title: C# text file to 2d array?
body: <p>If I create a 2d array like so:</p>
  
  <pre><code>int[,] MyArray = new int[5, 5];
  </code></pre>
  
  <p>and have a text file with these numbers:</p>
  
  <p>1 2 3 4 5</p>
  
  <p>5 4 3 2 1</p>
  
  <p>1 2 3 4 5</p>
  
  <p>2 3 4 6 7</p>
  
  <p>7 8 9 6 4</p>
  
  <p>How do I get the numbers into the 2d array?</p>