Advertisement
Guest User

MakeFile.jarva for Bukkit Skids

a guest
Jun 15th, 2012
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.19 KB | None | 0 0
  1. public void createFile() {
  2.         file = new File("file.txt");
  3.         if(!file.exists()) {
  4.             try {
  5.                 file.createNewFile();
  6.             } catch (IOException e) {
  7.                 e.printStackTrace();
  8.             }
  9.         }
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement