title: Files.write() : appending new lines in a text file
body: <p>I'm using the code below to write into a text file</p>
  
  <pre><code>String content = "I Love Java";
  Files.write(Paths.get(gg), (content + "\n").getBytes(UTF_8),StandardOpenOption.CREATE,StandardOpenOption.APPEND);
  </code></pre>
  
  <p>After 3 times of run, the text is saved into the the text as : </p>
  
  <pre><code>I Love JavaI Love JavaI Love Java
  </code></pre>
  
  <p>But, I want the text in the text file looks like:</p>
  
  <pre><code>I Love Java 
  I Love Java
  I Love Java
  </code></pre>
  
  <p>Any help please ?</p>