File.createTempFile()
allows you to specify a directory so:
File uniqueFile = File.createTempFile("post", ".html", new File("/var/www/doc"));
cletus
2010-01-13 03:05:16
File.createTempFile()
allows you to specify a directory so:
File uniqueFile = File.createTempFile("post", ".html", new File("/var/www/doc"));
You want the File.createTempFile(String, String, File)
overload.
Which you would have seen immediately had you bothered to look at the documentation.