I\'m looking for a safe way to create a temp file in Java. By safe, I mean the following:
String tempfilePath = System.getProperty("java.io.tmpdir"); tempfilePath = tempfilePath.concat("filename.extension");
doesn't require prefix.