title: write newline into a file
body: <p>considering the following function</p>
  
  <pre><code>private static void GetText(String nodeValue) throws IOException {
  
     if(!file3.exists()) {
         file3.createNewFile();
     }
  
     FileOutputStream fop=new FileOutputStream(file3,true);
     if(nodeValue!=null)
         fop.write(nodeValue.getBytes());
  
     fop.flush();
     fop.close();
  
  }
  </code></pre>
  
  <p>what to add to make it to write each time in the next line?</p>
  
  <p>for example i want each words of a given string in a seperate lline for example: </p>
  
  <pre><code>i am mostafa
  </code></pre>
  
  <p>writes as:</p>
  
  <pre><code> i
   am
   mostafa
  </code></pre>