title: correct way to read properties file
body: <p>I am having trouble finding out the right way to load a properties file.
  The structure is : Inside <code>src/com.training</code> , I have my class and the properties file as well. I have to read it using the absolute path as shown in the code below to get it to work:</p>
  
  <pre><code>Properties prop = new Properties();
  InputStream input = null;
  input = new FileInputStream("D:/Dev/workspace/Training/src/com/training/consolemessages.properties");                 
  prop.load(input);
  System.out.print(prop.getProperty("INITIAL_MESSAGE"));
  </code></pre>
  
  <p>How can I use the relative path to work in this code for accessing the properties file. The properties file and the class which is accessing are both at the same level '/src/com.training'</p>