public void write(File file) throws IOException {
  PrintWriter pw=new PrintWriter(new OutputStreamWriter(new FileOutputStream(file),"UTF-8"),true);
  if (fromDir != null) {
    pw.println("FROM: " + fromDir + "*"+ fromExt);
  }
  String str=null;
  for (int i=0; i < bList.size(); i++) {
    str=(String)(bList.elementAt(i));
    pw.println(str);
  }
}

public void write ( File file ) throws IOException { PrintWriter pw = new PrintWriter ( new OutputStreamWriter ( new FileOutputStream ( file ) , "UTF-8" ) , true ) ; if ( fromDir != null ) { pw . println ( "FROM: " + fromDir + "*" + fromExt ) ; } String str = null ; for ( int i = 0 ; i < bList . size ( ) ; i ++ ) { str = ( String ) ( bList . elementAt ( i ) ) ; pw . println ( str ) ; } }
write the basenamelist to a file .
