question: public static void writeFofn ( final File destination , final List < File > files ) throws IOException { final BufferedWriter bw = new BufferedWriter ( new FileWriter ( destination ) ) ; try { for ( final File file : files ) { bw . write ( wrapArg ( file . getAbsolutePath ( ) ) ) ; bw . newLine ( ) ; } bw . flush ( ) ; } finally { bw . close ( ) ; } }
target:  Takes a list of files and writes it as a "File of file names" (i.e. a file with one filepath on each line) to the destination file, overwriting the destination file if it exists.  Note the filepath used is the absolute filepath