Data update
This commit is contained in:
parent
5af6d93694
commit
796d366b97
455 changed files with 7413 additions and 1900 deletions
15
Task/Secure-temporary-file/Java/secure-temporary-file-1.java
Normal file
15
Task/Secure-temporary-file/Java/secure-temporary-file-1.java
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
public class CreateTempFile {
|
||||
public static void main(String[] args) {
|
||||
try {
|
||||
//create a temp file
|
||||
File temp = File.createTempFile("temp-file-name", ".tmp");
|
||||
System.out.println("Temp file : " + temp.getAbsolutePath());
|
||||
}
|
||||
catch(IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue