Path path = Paths.get(/*File Location*/); Path filePath = Paths.get("C:/", "temp", "test.txt"); Path filePath = Paths.get("test.txt"); // current folder