public static void writeToFile(String fileName,String content){
  String classMethod="UpgradeUtils:writeToFile : ";
  FileWriter fout=null;
  try {
    fout=new FileWriter(fileName);
    fout.write(content);
  }
 catch (  IOException e) {
    debug.error(classMethod + "Error writing to bootstrap file " + fileName);
  }
 finally {
    if (fout != null) {
      try {
        fout.close();
      }
 catch (      Exception ex) {
      }
    }
  }
}

public static void writeToFile ( String fileName , String content ) { String classMethod = "UpgradeUtils:writeToFile : " ; FileWriter fout = null ; try { fout = new FileWriter ( fileName ) ; fout . write ( content ) ; } catch ( IOException e ) { debug . error ( classMethod + "Error writing to bootstrap file " + fileName ) ; } finally { if ( fout != null ) { try { fout . close ( ) ; } catch ( Exception ex ) { } } } }
creates a file . this method is used to create the bootstrap file
