diff MelodyResults.java @ 2:1fe7ac28a3ca

Save results after each presentation. Ignore-this: 5f7d744b55a2f8919f7807bf69fa3d1a
author Marcus Pearce <m.pearce@gold.ac.uk>
date Mon, 14 Jun 2010 13:28:18 +0100
parents 4031cbb02f08
children 3dd7636ca811
line wrap: on
line diff
--- a/MelodyResults.java	Tue Jun 08 17:30:07 2010 +0100
+++ b/MelodyResults.java	Mon Jun 14 13:28:18 2010 +0100
@@ -2,7 +2,7 @@
  * File:       MelodyResults.java
  * Author:     Marcus Pearce <m.pearce@gold.ac.uk>
  * Created:    <2007-02-14 11:28:27 marcusp>
- * Time-stamp: <2010-05-10 11:38:52 marcusp>
+ * Time-stamp: <2010-06-14 13:00:50 marcusp>
  *=============================================================================
  */
 
@@ -72,10 +72,10 @@
         answers.add(answer); 
     }
 
-    public void writeResults(File outputFile, boolean header) { 
+    public void writeResults(File outputFile, boolean header, boolean append) { 
 	Writer writer = null;
         try {
-            writer = new FileWriter (outputFile, true);
+            writer = new FileWriter (outputFile, append);
         } catch (IOException e) {
             System.out.println("Could not write file: " + outputFile.getPath());
             return;