Delete a line in file (Android/java)
<p>In my app (Android) I create a file. To this file I add a line by line after some situation. Then I send a data to the server line by line. When all transmission is OK I erase the file, like this:</p>

<pre><code>fos_kasowanie_pliku = openFileOutput(FILENAME, Context.MODE_PRIVATE);
fos_kasowanie_pliku.write("".getBytes());
fos_kasowanie_pliku.close();
</code></pre>

<p>Can I delete only 1 line (first one) after sending this to the server? 
I read that I should rewrite the file without this line. Is there a better solution?</p>
