\\n won't work, not going to a new line
I'm creating a small program that saves a int value into a text file, saves it, and loads it when you start the program again. Now, I need 3 more booleans to be stored in the text file, I am writing things in the file with public Formatter x; x.format("%s", "" + m.getPoints() + "\n"); Whenever I want to go to a new line in my text file, with \n, it wont go to a new line, it will just write it directly behind the int value. I tried doing both x.format("%s", "" + m.getPoints() + "\n"); x.format("%s", "" + m.getStoreItem1Bought() + "\n"); and x.format("%s%s", "" + m.getPoints() + "\n", "" + m