title: Binary/Int File reading & Array Storage
body: <p>Trying to help a friend, I'm not asking for code.</p>
  
  <p>I have a text file that has integers that are sorted in binary form. 100010101001010101010.
  How would I go about reading 8 ints at a time to make a byte, then store that as a int, stuff that into an array of ints. I cannot use strings, or anything with dynamic allocation. The numbers are on one line. I have to seperate them myself through the program.</p>
  
  <p>I thought about using a for loop with a pointer reading each int at and append them to an int, throwing that int into the array. Something like (excuse me for paraphrasing coding, I haven't touched it in a while.)</p>
  
  <pre><code>while(eof) //end of file
  {
      for(int i = 0, i &gt; 9, i ++)
      {
      pointer read file seekg()
      int += seekg()  // minus the part where its mathematically adding im thinking of     str+= str 
      //i know its the wrong code
      }
  
  x++
  array [x] = int from for loop
  }
  </code></pre>
  
  <p>Any thoughts on this?</p>