title: Reading in an ascii 'maze' into a 2d array
body: <p>I'm writing code to read in a 7x15 block of text in a file that will represent a 'maze'. </p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;fstream&gt;
  #include &lt;string&gt;
  #include "board.h"  
  
  int main()
  {
      char charBoard[7][15];  //the array we will use to scan the maze and modify it
      ifstream loadMaze("maze");  //the fstream we will use to take in a maze
      char temp; //our temperary holder of each char we read in
  
      for(int i = 0;i &lt; 7; i++)
      {
  
          for(int j = 0; j &lt; 15; j++)
      {
          temp= loadMaze.get();
          charBoard[i][j] = temp;
          cout &lt;&lt; charBoard[i][j];  //testing
      }
      cout &lt;&lt; endl;
  }
  
  return 0;
  }
  </code></pre>
  
  <p>this was my original draft but this didnt work as it kept returning ? for each char it read. 
  This is the maze im testing with:</p>
  
  <pre>
    #############
                #
  ############  #
                #
   ######### ####
   # !       #   
  ############   
  </pre> 
  
  <p>EDIT:
  The cout is printing this: </p>
  
  <pre>
    #############
  
  
  #
  ############ 
   #
  
    #
   ######### 
  ####
   # !      
   #   
  #########
  </pre>
  
  <p>Am I not escaping \n's?</p>
  
  <p>I've been coding for a few hours so I think its a simple mistake I'm not catching that's tripping me up right now. Thanks!</p>