System.out.println("Error -- failed to flush filewriter");
System.out.println("Error -- failed to flush filewriter:" + e.getMessage());
    public static void flushFileWriter() {	try {	    if (errorStream != null) {		// force disk flush		errorStream.flush();	    }	    if (resultStream != null) {		// force disk flush		resultStream.flush();	    }	} catch (Exception e) {	    System.out.println("Error -- failed to flush filewriter");	    e.printStackTrace();	}    }