title: Read several bytes, jump over N bytes, and then read several bytes again. how?
body: <p>I have a binary file, a.bin, which contains 768 bytes.</p>
  
  <p>And I want put the bytes 16-256, 272-512, 528-768 into </p>
  
  <pre><code>char data[720]
  </code></pre>
  
  <p>I did somethin like</p>
  
  <pre><code>ifstream a1;
  a1.open("a.bin", ios::in|ios::binary)
  
  char tmp[256]
  a1.read(tmp,256)
  </code></pre>
  
  <p>And then I did some loop and copy tmp to data[720] in logic. But that looks really stupid. So I want to ask</p>
  
  <ol>
  <li><p>How can I read data to certain position of a char arry ?</p>
  
  <p>a1.read(tmp[2],2)  // not allowed, how to achieve this?</p></li>
  <li><p>How can I jump over certain day?</p>
  
  <p>a1.read(tmp16,16); I can use this to jump 16 bytes and neve use tmp16, but it looks ugly.</p></li>
  </ol>