I want to write the results of my tests to an already created text file using PrintStream
. Unfortunately i only know about this statement
PrintStream out = new PrintStream(new FileOutputStream("Results.txt"))
but this is creating a new file. Removing new
from the statement won't work.
So, what is the command to write in Results.txt
without deleting the previous results/creating a new one?