setOutputFile(new File("-"));
File resultsFile; try { resultsFile = File.createTempFile("weka_experiment", null); resultsFile.deleteOnExit(); } catch (Exception e) { System.err.println("Cannot create temp file, writing to standard out."); resultsFile = new File("-"); } setOutputFile(resultsFile); setOutputFileName("");
  public void setOptions(String[] options) throws Exception {        String fName = Utils.getOption('O', options);    if (fName.length() != 0) {      setOutputFile(new File(fName));    } else {      setOutputFile(new File("-"));    }  }