Hello all
i have this simple function that will read me line by line from giving text file
that is in the under webapps dir of my tomcat


public String getConst(String category,String param){
String filename = "\\conf.txt";

try{
java.io.BufferedReader in = new java.io.BufferedReader(new java.io.FileReader( filename) );
String str;
while ((str = in.readLine()) != null) {
str+=str;
}
return str;
}catch(java.io.IOException e){
return "file not found";
}
}







and stillim geting file not found all the time why is that?