open file error.
This is my method:
privatestatic BufferedReader readFileWithBufferedReader(String filename){
FileInputStream fis =null;
InputStreamReader sr=null;
BufferedReader r=null;
try{
fis =new FileInputStream(filename);
}catch (FileNotFoundException ex){
ex.printStackTrace();
}//fis catch
try{
sr =new InputStreamReader(fis,"Cp866");
}catch (UnsupportedEncodingException ex){
ex.printStackTrace();
}//sr catch
br =new BufferedReader( sr);
return br;
}
The aim of it is to getBufferedReader
Then, I parse file.
The problem is:
If I send to methos filepath like : filename ="test.txt";
it reads file, but If I send to method filename ="d:\test.txt";
I do not get anything....no exceptions...no result...
What does it mean, can you give me some comments?
Where is a mistake?

