title: How to add a new line in a file without overwriting current line?
body: <p>I currently have.</p>
  
  <pre><code>public void openFile(){
      try{
          x = new Formatter("Data.text");
      }
      catch(Exception e){
          System.out.println("File not created");
      }
  }
  </code></pre>
  
  <p>.
  .
  .
  .</p>
  
  <p>.</p>
  
  <p>.</p>
  
  <pre><code>public void addRecords(){
      x.format("%s %s %s %s", first(), last(), ID(), num());
  }
  </code></pre>
  
  <p>But after I run the file, it overwrites the data each time?</p>