Qt: prepend text to file
<p>I wanted to write to a file and I did it, but it always writes to the last line. Is there a way to make it write to the first line?  For example, given a file containing</p>

<pre><code>apple
orange
</code></pre>

<p>and I want to add "banana"; I want the file to become:</p>

<pre><code>banana  
apple
orange
</code></pre>

<p>My current code is:</p>

<pre><code>void Write (QString file)
{
    QFile sfile(file);
    if(!sfile.open(QFile::Append |QFile::Text))
    {
        return;
    }
    QTextStream out(&amp;sfile);
    out &lt;&lt;"        "&lt;&lt;xscore&lt;&lt;"        "&lt;&lt;oscore&lt;&lt;endl;
    sfile.close();
}
</code></pre>

<p>How should I change this to insert text at the beginning of the file?</p>