Outputting a String into a file, without clearing the file
<p>I've been working on sort of "logging" to text file using BufferedWriter and I came across a problem:</p>

<p>I run the following code.. fairly basic..</p>

<pre><code>BufferedWriter out = new BufferedWriter(new FileWriter(path+fileName));
String str = "blabla";
out.write(str);
out.close();
</code></pre>

<p>and the next thing I know is that the entire file that had couple of lines of text has been cleared and only 'blabla' is there.</p>

<p>What class should I use to make it add a new line, with the text 'blabla', without having to get the entire file text to a string and adding it to 'str' before 'blabla'?</p>
