Reading a property file in java
<p>I have a property file and i want to read it in my java program..
The code is</p>

<pre><code>Properties prop = new Properties();
File file =new  File("sendmails.properties");
String absolutePath = file.getAbsolutePath();


FileReader reader = new FileReader(file) ; 
prop.load(reader);
</code></pre>

<p>The problem is File not found exception shows.</p>

<p>Both files are in same directory</p>

<p>Can anyone give me a solution?</p>
