SyntaxFix
Write A Post
Hire A Developer
Questions
There is no such functionality but you can use a temporary file by File.createTempFile().
File temp = File.createTempFile(prefix, suffix); // tell system to delete it when vm terminates. temp.deleteOnExit();