what to do with BufferedWriter object when writing to a file in external storage
<p>i am writing a string to a file in android using :</p>

<pre><code>BufferedWriter writer = new BufferedWriter(new FileWriter(order));
        writer.append(placedOrder);
</code></pre>

<p>whether i use </p>

<pre><code>writer.write(placedOrder); // or
writer.append(placedOrder);
</code></pre>

<p>the data of the file is erased every time i run this code.
I want to add the data to the end of file.</p>

<p>Ex: When i run first time :</p>

<pre><code>file output
My
</code></pre>

<p>Ex: When i run second time :</p>

<pre><code>file output becomes
My
Name
</code></pre>

<p>Ex: When i run third time :</p>

<pre><code>file output
My
Name
is
</code></pre>

<p>Ex: When i run fourth time :</p>

<pre><code>file output
My
Name
is
Hisham.
</code></pre>

<p>and so on. Like having a record of all previous outputs.</p>
