title: Java getting file as resource when it's in the project folder
body: <p>I currently have a project in Java set up with the following directory structure in Eclipse:</p>
  
  <p><img src="https://i.stack.imgur.com/om7WQ.jpg" alt="enter image description here"></p>
  
  <p>And in my code I have the following lines:</p>
  
  <pre><code>InputStream is = this.getClass().getClassLoader().getResourceAsStream("resources/config");
  BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(is));
  </code></pre>
  
  <p>However, the <code>InputStream is</code> always gets assigned to null, which causes a crash when it gets to the second line. I know it has something to do with how I set up the path that it's looking for, but I can't figure out exactly why it isn't working.</p>