FileWriter newFile = new FileWriter(fileName+"_report.html");
newFile = new FileWriter(fileName+"_report.html");
  public void generateReport()  {           printItemReportHTML(report);           try {              FileWriter newFile = new FileWriter(fileName+"_report.html");              newFile.write("<!doctype HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\"><html>");              newFile.write("<body>"+"\n");              newFile.write("<font color=\"BLUE\" size=\"5\">Distributed Test report<font/>"+"\n");              newFile.write("<table border=\"1\">"+"\n");              newFile.write(printTotalReportHTML(report));              newFile.write("<table/>");            //  newFile.write("<font color=\"BLUE\" size=\"5\">Error report<font/>"+"\n");            //  newFile.write("<table border=\"1\">"+"\n");            //  newFile.write(printTotalReportHTML(errorReport));            //  newFile.write("<table/>");              newFile.write("<body/>"+"\n");              newFile.write("<html/>"+"\n");              newFile.flush();              newFile.close();          //    SFSystem.sflog().out("Report created: "+fileName+"_report.html");            } catch (IOException e) {              if (SFSystem.sflog().isErrorEnabled()){         //       SFSystem.sflog().error(e);              }           }  }