question: 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 ) ; } }
target:  Write the basenameList to a File.