How to open and read a file in the src/my/package folder?
<p>I would like to load the contents of a text file in a String.
The text file should stay in the same folder <code>src/my/package</code> as the <code>.java</code>.</p>

<p>However, I can't find the path to this file:
I have tried:</p>

<pre><code>File f = new File("src/my/package/file.js"); 
File f = new File("file.js"); 
</code></pre>

<p>and many others but nothing worked.</p>

<p>What is the correct path to my file?</p>
