c++ transfer file line by line in reverse order
<p>Good day!</p>

<p>I have a code that suppose to transfer the file into another file in reverse order, line by line, but it does not work, maybe I forgot to add somethings:</p>

<pre><code>while(cnvFile.good()) {
    getline(cnvFile, cnvPerLine);

    reverseFile &lt;&lt; cnvPerLine;
    reverseFile.seekp(0, ios::beg);
}
</code></pre>

<p>Thanks..</p>
