title: Read from file and store to 2D array not displaying properly
body: <p>I'm tring to read a text file that's made out of 30x100 integers: <a href="https://pastebin.com/wemNrdMZ" rel="nofollow noreferrer">https://pastebin.com/wemNrdMZ</a></p>
  
  <p>For some reason it display perfectly if I read the file into a char data type. But when I change the data type to int the display becomes completely messed up: <a href="https://imgur.com/k0k11lH" rel="nofollow noreferrer">https://imgur.com/k0k11lH</a></p>
  
  <p>Here's my code: </p>
  
  <pre><code>int const row = 30;
  int const colum = 100;
  int map[row][colum];
  fstream inFile;
  inFile.open("map.txt"); //Located at the same location as .cpp file
  if (inFile.is_open())
  {
      for (int i = 0; i &lt; row; i++)
          for (int j = 0; j &lt; colum; j++)
          {
              inFile &gt;&gt; map[i][j];
          }
      inFile.close();
  }
  else
  {
      cout &lt;&lt; "file not found" &lt;&lt; endl;
  }
  
  for (int i = 0; i &lt; row; i++)
  {
      for (int j = 0; j &lt; colum; j++)
      {
          cout &lt;&lt; map[i][j];
      }
      cout &lt;&lt; endl;
  }
  </code></pre>
  
  <p>}</p>
  
  <p>successful reading if I change from int to char: <a href="https://imgur.com/GsXnPUI" rel="nofollow noreferrer">https://imgur.com/GsXnPUI</a></p>