package uiandio;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;


/**
 * Use to write test data to a file.<br>
 * The writeLine method is convenient for writing text output that can be copied
 * into a spreadsheet easily, as strings are separated by tab (\t) characters.
 */
public class FileIO {
    private PrintWriter printWriter;
    private String SEPARATOR_COLUMN = "\t";
    private String SEPARATOR_ROW = System.lineSeparator();
    
    public static boolean makeDirs(String path) {
        return (new File(path)).mkdirs();
    }
    
    public FileIO(String filename) {
        try {
            printWriter = new PrintWriter(filename);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
    }
    
    public void writeLine(String string) {
        printWriter.write(string);
        printWriter.write(SEPARATOR_ROW);
    }
    
    public void writeRow(String...strings) {
        String separatorColumn = "";
        for (String string : strings) {
            printWriter.write(separatorColumn);
            printWriter.write(string);
            separatorColumn = SEPARATOR_COLUMN;
        }
        printWriter.write(SEPARATOR_ROW);
    }
    
    public void close() {
        printWriter.close();
    }
    
    public void flush() {
        printWriter.flush();
    }
}
@@ -565,36 +565,32 @@
 mkdirs();%0A    %7D%0A
-    
 %0A    public File
@@ -768,32 +768,199 @@
    %7D%0A    %7D%0A    %0A
+    public static FileIO csv(String filename) %7B%0A        FileIO fileIO = new FileIO(filename);%0A        fileIO.SEPARATOR_COLUMN = %22,%22;%0A        return fileIO;%0A    %7D%0A    %0A
     public void 

Add csv file constructor for FileIO class