Hello everyone. I was having a bit of a problem with printing out a text file using Formatter. Whenever my program writes to a file it prints everything on one line and when I type \n it prints out a square instead of a new line to separate my information. Here is a sample of the code I have that I'm trying to print out separetly. How can I have it space out the information that I have? Thanks in advance for the help.
output.format("%s\t%10s", "Apple", "Cookies");
This works when I put a tab in it and shows:
Apple Cookies
output.format("%s\n%10s", "Apple", "Cookies");
This prints out a square between Apple and Cookies:
Apple[]Cookies
instead of
Apple
Cookies