public static File writeTmpFile(final String prefix,final String suffix,final boolean deleteOnExit,final List<String> args) throws IOException {
  final File tmpFile=File.createTempFile(prefix,suffix);
  if (deleteOnExit) {
    tmpFile.deleteOnExit();
  }
  writeFile(tmpFile,args);
  return tmpFile;
}

public static File writeTmpFile ( final String prefix , final String suffix , final boolean deleteOnExit , final List < String > args ) throws IOException { final File tmpFile = File . createTempFile ( prefix , suffix ) ; if ( deleteOnExit ) { tmpFile . deleteOnExit ( ) ; } writeFile ( tmpFile , args ) ; return tmpFile ; }
write the strings to a temporary file .
