Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void createFile() {
- file = new File("file.txt");
- if(!file.exists()) {
- try {
- file.createNewFile();
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement