title: How to write new line in Java FileOutputStream
body: <p>I want to write a new line using a <code>FileOutputStream</code>; I have tried the following approaches, but none of them are working:</p>
  
  <pre><code>encfileout.write('\n');
  encfileout.write("\n".getbytes());
  encfileout.write(System.getProperty("line.separator").getBytes());
  </code></pre>