Newline in FileWriter
<p>How do you produce a new line in FileWriter? It seems that "\n" does not work.</p>

<pre><code>log = new FileWriter("c:\\" + s.getInetAddress().getHostAddress() + ".txt", true);    
log.append("\n" + Long.toString(fileTransferTime));
log.close();
</code></pre>

<p>The file output of the code above is just a long string of numbers without the new line. </p>
