title: Read in 2D array file into 2D array
body: <p>I am making a top-down rpg game and I plan to use txt files and 2D arrays for levels, I am going to have a 2D array containing values from 0 to 6, each representing a different texture, I plan to keep these levels in a txt file, but I am having trouble reading in the file into a 2D array. </p>
  
  <p>This is what my file looks like</p>
  
  <pre><code>0000000010000000044444444
  0000050010000005504444444
  0050000010000000005544444
  0005000010000000000550550
  0000000011111000333333333
  0000000000001111100000000
  0005000055000010000000000
  0000000000000010000000000
  0000050000500010000000000
  0000000000000010000000000
  0000000050005010000000200
  0001111111111112200002000
  0501000000000002200002000
  0051000000000000000002000
  </code></pre>
  
  <p>This is my code for reading in my array, by the way its 14x25.</p>
  
  <pre><code>public int[][] readInLevel(String levelNumber)
      {
  
          try
          {
              BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(levelNumber)));
              while (in.ready() == true)
              {
  
                  for (int row = 0; row &lt;= 13; row++)
                  {
                      for (int column = 0; column &lt;= 24; column++)
                      {
                          level_1[row][column] = in.read();
                      }
                  }
              }
          } catch (Exception e)
          {
              System.out.println(e);
          }
  
          return null;
  
      }
  </code></pre>
  
  <p>And this is my 2D array. </p>
  
  <pre><code>int level_1[][] = new int[14][25];
  </code></pre>