Advertisement
madhawaseeeee

h

Dec 28th, 2014
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. File file = new File("c:\\newfile.txt");
  2.  
  3. if (file.createNewFile()){
  4. System.out.println("File is created!");
  5. }else{
  6. System.out.println("File already exists.");
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement