title: Appending to file in utf8
body: <p>For a project I need to append to a textfile using UTF-8 encoding.
  During my research I found two possibilities:</p>
  
  <pre><code>BufferedWriter out = new BufferedWriter(
      new OutputStreamWriter(new FileOutputStream("file.txt), "UTF-8")
  )
  </code></pre>
  
  <p>This will write to my file in UTF-8, but it will overwrite it, rather than append to it if it already exist.</p>
  
  <p>Then I found the code to apend to an existing file with a parameter in the <code>FileWriter</code>, but this will not use UTF-8 explicitely, rather than use the default system character set:</p>
  
  <pre><code>BufferedWriter out = new BufferedWriter(new FileWriter("myfile.txt", true))
  </code></pre>
  
  <p>I now need the possibility to define BOTH the encoding as well as appending to a file. Just rely on the system encoding or change this is not an option.</p>
  
  <p>Any thoughts?</p>