I have a property file and i want to read it in my java program.. The code is
Properties prop = new Properties();
File file =new File("sendmails.properties");
String absolutePath = file.getAbsolutePath();
FileReader reader = new FileReader(file) ;
prop.load(reader);
- File not found exception shows.
- Both files are in same directory
Can anyone give me a solution?