+2 votes
in Programming Languages by (71.8k points)
I am getting error java.io.FileNotFoundException while trying to read a file which I have kept in the src folder. Where should the file be kept?

1 Answer

+2 votes
by (71.8k points)
selected by
 
Best answer

The file is in the wrong folder. Place it under project folder where you have the followings..

 build, nbproject , src , build.xml,   manifest.mf . 

Also make sure your file doesn't have extra space in the name. It might also cause error even if you put the file in the project folder.


...