android add text line at the beginning of .txt file
<p>I have this code</p>

<pre><code> File gpxfile = new File(root, "mesaje.txt");

            BufferedWriter bW;

            bW = new BufferedWriter(new FileWriter(gpxfile, true));
            bW.write(format + " " + message + "\n-----------------------\n");
            bW.newLine();
            bW.flush();
            bW.close();
</code></pre>

<p>It writes a .txt file adding text after the last line. I would like to add text on the first line, so that it will appear as the lastest information. How can i do that? Thanks!</p>
