title: Java can't read file except when in project root directory
body: <p>I am using IDEA 14 to follow a simple Java tutorial (JDBC). As part of this, I am storing some configuration properties in a file called <code>jdbcTutorial.properties</code>. When I put this in the root directory of the project, I can read it with the following:</p>
  
  <pre><code>Properties props = new Properties();
  props.load(new FileInputStream("jdbcTutorial.properties"));
  </code></pre>
  
  <p>However, as soon as I move it to any other directory in the project, I get the error <code>"No such file or directory"</code>. <strong>This happens regardless of whether I specify a relative or absolute path:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/jezVz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jezVz.png" alt="enter image description here"></a></p>
  
  <p>Maybe there are more standard ways to use config files, but I would really like to understand the behavior I am observing. Thanks for helping!</p>