Edit text file programmatically
<p>How can we modify a text file from android, such as </p>

<ul>
<li>append at the end of the file.</li>
<li>clear data at any intermediate position and also blank lines in it.</li>
</ul>

<p>Is there any option to delete a particular line from the text file, I read so many tutorials regarding this all have mentioned to create a temporary file and asked to copy the contents from the original file except that particular line, and to replace the original file with this temporary file.
Is there any alternative to do this with in that original file itself without creating a temporary file?</p>

<p>Thanks in Advance.</p>
