question: public static void writeResultToFile ( Result result , String fname ) throws Exception { PrintWriter outer = new PrintWriter ( new BufferedWriter ( new FileWriter ( fname ) ) ) ; outer . write ( result . toString ( ) ) ; outer . close ( ) ; }
target:  WriteResultToFile -- write a Result 'result' out in plain text format to file 'fname'.