title: write to .txt and keep writing instead of replace
body: <p>how do i getting it to make a new line and keep writing instead of replacing my text in the .txt and add a few other stuffs</p>
  
  <p>1.5(this should only be added once in the top i am not sure how to do that)</p>
  
  <p>LAGERIND(text)</p>
  
  <p>KW89668(Cardnumberbox)</p>
  
  <p>RHAL4 (shelfnumberbox)</p>
  
  <p>thats how it should look like in the .txt<br>
  <a href="https://i.stack.imgur.com/9hE85.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9hE85.png" alt="enter image description here"></a></p>
  
  <pre><code>    public void onPictureTaken(byte[] bytes, Camera camera) {
                   File dir = new File(path);
                  dir.mkdirs();
                  File file = new File (path + "/append.txt");
  String [] saveText = String.valueOf("LAGERIND"+cardnumberbox.getText()+shelfnumberbox.getText()).split(System.getProperty("line.separator"));
  
                  cardnumberbox.setText("");
  
                  Save (file ,saveText);
  
     public static void Save(File file, String[] data)
      {
          FileOutputStream fos = null;
          try
          {
              fos = new FileOutputStream(file);
          }
          catch (FileNotFoundException e) {e.printStackTrace();}
          try
          {
              try
              {
                  for (int i = 0; i&lt;data.length; i++)
                  {
                      fos.write(data[i].getBytes());
                      if (i &lt; data.length-1)
                      {
                          fos.write("\n".getBytes());
                      }
                  }
              }
              catch (IOException e) {e.printStackTrace();}
          }
          finally
          {
              try
              {
                  fos.close();
              }
              catch (IOException e) {e.printStackTrace();}
          }
      }
  </code></pre>