title: Loading in a file skips 3rd and 4th byte, but reads the rest of the file fine
body: <p>Im attempting to read in a binary file and put it in an array. However when loading in the file it skips the 3rd and 4th byte of the file and reads the rest in fine.</p>
  
  <p>The file contains:</p>
  
  <pre><code>30 01 00 20 39 00 20 00 10 01 33 00 00 02 70 00
  00 40
  </code></pre>
  
  <p>with the rest of the file filled with 0's</p>
  
  <p>The array contains</p>
  
  <pre><code>30 01 39 00 20 00 10 01 33 00 00 02 70 00
  40 
  </code></pre>
  
  <p>with the rest of the array filled with zeros</p>
  
  <p>It only appears to skip over <code>00 20</code> in the third and fourth byte. </p>
  
  <p>Here is the code:</p>
  
  <pre class="lang-cpp prettyprint-override"><code>uint8_t memory[65536] = { };
  
  void LoadIntoMemory(char* filepath){
      std::ifstream File;
      File.open(filepath);
      for(int i = 0; i &lt; 65536; i ++){
          File &gt;&gt; memory[i];
      }
      File.close();
  }
  </code></pre>
  
  <p>The file being loaded will always be 65536 bytes</p>