c++ transfer file line by line in reverse order
<p>I have this code that is supposed to transfer a file into another file in reverse order, line by line. However it does not work. Maybe I forgot to add something:</p>

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

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