FileNotFoundException even when file placed in the same folder as the class files
<p>I read a file <code>big.txt</code> to poulate my HashMap. I have placed the file along side the <code>class</code> files in the <code>bin</code> folder. </p>

<p>However, whenever I want to use it, it gives an error saying <code>java.io.FileNotFoundException ( No such file or directory )</code>.</p>

<p>How is this happening ?</p>

<pre><code>public ClassName() throws IOException{
        URL url = ClassName.class.getResource("big.txt");
        File file = new File(url.getPath());
        BufferedReader inp= new BufferedReader(new FileReader(file));
        // some code
        }
        inp.close();        
    }
</code></pre>

<p>Why is this happening ? Plaese help me out here !</p>
