title: How to read file from last cursor position?
body: <pre><code>char buf[100];
  int bufSize = 100;
  int lastPosition = 0;
  while(!myfile.eof()){
  myfile.read(buf,100);
  myfile.seekg(lastPosition);
  lastPosition = lastPosition + bufSize;
  }
  </code></pre>
  
  <p>I try to read 100 bytes from myfile and set the cursor position 100. byte. Then I want to read from 100. byte to 200. byte ... till the end of file. What I'm doing is true?</p>