I have a file named \"word.txt\".
word.txt
It is in the same directory as my java file.
java
But when I try to access it in the following code th
Try to create a file using the code, so you will get to know the path of the file where the system create
File test=new File("check.txt"); if (test.createNewFile()) { System.out.println("File created: " + test.getName()); }