Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import java.io.File;
- public class Main {
- public static void main(String[] args) throws IOException {
- File file = new File("./path2.txt");
- file.createNewFile();
- if(file.exists())
- System.out.println(file.getParent());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement