File createTemporaryFile(File file) throws IOException {
  return File.createTempFile(file.getName(),".tmp",file.getParentFile());
}

File createTemporaryFile ( File file ) throws IOException { return File . createTempFile ( file . getName ( ) , ".tmp" , file . getParentFile ( ) ) ; }
creates a temporary file with the same name as the given file but with " . tmp " prepended to it .
