Try this, create a line, and then save the entire .txt file, then run the file in FOS
String output = "|" + string + "\n";
and then just add to it, and then put that line in it, because the line will become multi-line and just print to the file in the same way
source share