title: How can I read from a .txt file to determine the size of a 2-D array?
body: <p>I am working on a flood-fill recursion assignment where I have to read an ASCII art text file and fill it in. The assignment can be found here: <a href="https://faculty.utrgv.edu/robert.schweller/CS2380/homework/hw10.pdf" rel="nofollow noreferrer">https://faculty.utrgv.edu/robert.schweller/CS2380/homework/hw10.pdf</a></p>
  
  <pre><code>Recursion() //construcor
  {
      column = -1;
      row = -1;
      grid = new char*[size of art row];
      for(int i = 0; i &lt; size of art; i++)
      {
          board[row] = new char[size of art column]
      }
  }
  </code></pre>
  
  <p>I'm not sure if determining the size of the array should be in the constructor or not. I need to know the size of the array in order to know where the user wants to fill the art file in. Also, here is all of the code for a better context. <a href="https://pastebin.com/TSYH26Ci" rel="nofollow noreferrer">https://pastebin.com/TSYH26Ci</a></p>