public static void fileWriter(String outfile,String contents,boolean append){
  try {
    BufferedWriter bw=new BufferedWriter(new FileWriter(new File(outfile),append));
    bw.write(contents);
    bw.close();
  }
 catch (  Exception e) {
  }
}

public static void fileWriter ( String outfile , String contents , boolean append ) { try { BufferedWriter bw = new BufferedWriter ( new FileWriter ( new File ( outfile ) , append ) ) ; bw . write ( contents ) ; bw . close ( ) ; } catch ( Exception e ) { } }
synopsis [ ] string to file , with append to file true / false option
