title: Reading file backwards , c++ ifstream
body: <p>I want to read from a file backwards - from the end to the beginning .
  This works , but not only I would like to get the characters from the file , I would like to remove them as I read .</p>
  
  <pre><code>std::fstream fileA;
  fileA.seekg(-1, fileA.end);
  int size = fileA.tellg();
  for (i = 1; i &lt;= size; i++)
  {
      fileA.seekg(-i, fileA.end);
      fileA.get(ch);
  
      std::cout &lt;&lt; ch;
  }
  </code></pre>
  
  <p>is there anyway to do this , without copying the content and creating a new file without what I have read ? </p>