title: Adding empty lines between sentences in text file
body: <p>So I have the following sentences in a text file:</p>
  
  <pre><code>Something I don't know
  Something else as well
  And this here
  And that
  </code></pre>
  
  <p>And I want to make it look like this</p>
  
  <pre><code>Something I don't know
  
  Something else as well
  
  And this here
  
  And that
  </code></pre>
  
  <p>I know the code up to the point that I copy the content in a character array but I don't know how to add the extra '\n' character in between the array.</p>
  
  <p>EDIT: Added the code.</p>
  
  <pre><code>import java.io.*;
  class File_Tester
  {
      public static void main(String[] args)
      {
      int S=0;
      char [] src = new char[300];
      FileReader fr;
      try{
      fr = new FileReader("src.txt");
      fr.read(src);
      fr.close();
      }catch (IOException io) 
      {
       System.out.println(io.toString());
       return;
      }
      for (int i=0;i&lt;src.length;i++)
      {
      if (src[i]==' ') 
      {
       src[i]='@';
       S++;
      }
      else if (src[i]=='\n')
      }
      try{
      File file = new File("dest.txt");
      file.createNewFile();
      FileWriter dest = new FileWriter(file);
      dest.write(src,0,src.length);
      dest.close();
      }catch (IOException io) 
      {
       System.out.println(io.toString());
       return;
      }
  
     }
  }
  </code></pre>