title: Writing into a text file then reading it back into a textarea javafx
body: <p>I have made a javafx application that writes an order into a txt file, Then im reading the txt file into a textarea.
  My code is working and is printing the file, but i do not know how to format it corectly. Im a noob to javafx, Am I writing it incorrectly? any help is appreciated</p>
  
  <p>This is the main part of the code that writes into the file.</p>
  
  <pre><code>Date date = new Date( );
        SimpleDateFormat ft = new SimpleDateFormat ("E yyyy.MM.dd 'at' hh:mm:ss a zzz"); 
  
    BufferedWriter bf = new BufferedWriter(new FileWriter("receipt.txt")); 
    bf.write("*************SHERIDAN BAGEL SHOP*************,");
    bf.newLine();
    bf.write(ft.format(date));
    bf.newLine();
    bf.write("Item:\t\t\tQty\tAmount,");
    bf.newLine();
   bf.write("\t\t\t\t-----------");
          bf.newLine();
          bf.write("Pretax Total\t\t\t$"+df.format(cost)+",");
          bf.newLine();
          bf.write("Sales Tax 13%\t\t\t$"+df.format(calctax)+",");
          bf.newLine();
          bf.write("Total Sale\t\t\t$"+df.format(calctotal)+",");
          bf.newLine();
          bf.write("*********THANK YOU FOR YOUR ORDER*********,");
  
        bf.close();
  </code></pre>
  
  <p>This is the output in the textfile</p>
  
  <pre><code>*************SHERIDAN BAGEL SHOP*************,
  Sat 2017.04.01 at 01:06:57 PM EDT
  Item:           Qty     Amount,
                        -----------
  Pretax Total            $0.00,
  Sales Tax 13%           $0.00,
  Total Sale              $0.00,
  *********THANK YOU FOR YOUR ORDER*********,
  </code></pre>
  
  <p>This is the code that reads the file</p>
  
  <pre><code>@FXML
      private TextArea receipt;
  
   public void ViewReceipt() {
       try {
          Scanner s = new Scanner(new File("receipt.txt"));
          while (s.hasNext()) {
            receipt.appendText(s.nextLine()+"\n");
          }
      } catch (FileNotFoundException ex) {
          System.err.println(ex);
      }
  
  
  }
  </code></pre>
  
  <p>This is how it is in the textarea</p>
  
  <pre><code>*************SHERIDAN BAGEL SHOP*************,
  Sat 2017.04.01 at 01:06:57 PM EDT
  Item:           Qty Amount,
                  -----------
  Pretax Total            $0.00,
  Sales Tax 13%           $0.00,
  Total Sale          $0.00,
  *********THANK YOU FOR YOUR ORDER*********,
  </code></pre>