protected void addLine(PrintWriter file,String string){
  log.debug(string);
  if (file != null) {
    file.println(string);
  }
}

protected void addLine ( PrintWriter file , String string ) { log . debug ( string ) ; if ( file != null ) { file . println ( string ) ; } }
writes string to file . no line length wrap or protection .
