title: Reading from file inserting values into ints and chars C++
body: <p>I wanted to read the short binaries from an external file with the key.</p>
  <blockquote>
  <p>3 A 0100 3 E 0101 3 G 0110 3 M 0111 3 N 1010 3 H 1011 2 S 100 1 T 00 2
  10 2 I 111</p>
  </blockquote>
  <p>3 is in an int called pos</p>
  <p>A is in a char called al</p>
  <p>0100 is in an array called bin etc...</p>