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
I was reading path from a properties file and didn't mention there was a space in the end. Make sure you don't have one.