I am trying to print this to a file:


try {

PrintWriter outfile = new PrintWriter(new FileWriter("CD.txt", true));
...