Reading the file from a location extracted from getProperty
<p>I am not very good with Java and am having a problem in understanding how to read the file efficiently so it is independent of the enviroment where my application executes.
Below i will try to explain what i am trying to do.
I have a configProperty.java</p>

<pre><code>private ConfigProperty() {
prop = new Properties();
InputStream in = getClass().getResourceAsStream("/test/util/CSV.properties");
try {
    prop.load(in);
    in.close();
} 
catch (IOException e) {
    e.printStackTrace();
}
}
</code></pre>

<p>the CSV.properties looks something like this</p>

<pre><code>a=Folder\\1.csv
b=Folder\\2.csv
c=Folder\\3.csv
</code></pre>

<p>and then in one of the class where i am using these it is something like </p>

<pre><code>ConfigProperty.getInstance();
String path = ConfigProperty.getProp().getProperty("a");
BufferedReader br = new BufferedReader(new FileReader(path));
</code></pre>

<p>By using the string variable path in this way in the BufferedReader(new FileReader) parameter i am limiting my applications to always fetch the path of "Folder/1.csv", "Folder/2.csv" and "Folder/3.csv" from the canonical path and the canonical path seems to be different for different IDE and enviroments.
At the end,i hope i am making sense here and am able to convey my problem. ;). Also, if i may request please explain in detail.</p>
