Use the relative path when providing the location of the file. Place the file in the project folder and access it according to the hierarchy. If you want to access a file outside the project folder, provide the absolute path.
java.io.FileNotFoundException: in.txt, (The system cannot find the file specified)at java.io.FileInputStream.open(Native Method)at java.io.FileInputStream.
(Unknown Source)at java.io.FileInputStream. (Unknown Source)at java.io.FileReader. (Unknown Source)at undefined.FileTest.main(FileTest.java:50)