Example #1
0
 /**
  * Write the database settings to ./config/db.cfg.
  *
  * @param WriteLogFile the logfile to write
  */
 public static void writeLogFile(LogView lview, String location) {
   try {
     FileWriter fw = new FileWriter(location + "/log.txt");
     PrintWriter pw = new PrintWriter(fw);
     pw.println(lview.getOldLog() + "\r\n" + lview.getCurrentLog());
     pw.close();
     fw.close();
   } catch (IOException ioe) {
   }
 }