-
file path
Hi all..
I want to know where to store my file that I have ro read from java program..
I am working on a Apache tomcat.......I am working on java beans..I have store text file in classes folder of webinf and also in jsp folder of examples..
but that is giving error which is follwing:
java.io.FileNotFoundException: prob.txt (The system cannot find the file specified)
-
When you execute the application get the file path and check that file is available in that location? Your error says that looking a file which is not found in the file path you are dealing with.
Can you show your code segment here that how you work on with the path of the file.
-
I have keep the file to be read in a folder name java1 which is in c drive and given a path like this :
File inputDataFile = new File("\pa_rashi\Desktop\prob.txt");
My program is working....
but anybody can tell me the what is path when file is in desktop...