title: Problems with filepath: the file exists, but java throws an exce
body: <p>I know for a fact that the given file exists in this directory. .class file is in the same directory. What's wrong with the path?</p>
  
  <pre><code>   String fileName = "/home/security/workspace/SecondProject/src/config.txt";
     File file = new File(fileName);
     FileInputStream fis = new FileInputStream(file);
     InputStreamReader isr = new InputStreamReader(fis, charset);
     BufferedReader br = new BufferedReader(isr);
     String line;
     while((line = br.readLine()) != null){
        //process the line
        System.out.println(line);
     }
     br.close();
  </code></pre>
  
  <p>The error is as follows:</p>
  
  <pre><code>java.io.FileNotFoundException: /home/security/workspace/SecondProject/src/config.txt (No such file or directory)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:146)
      at JDBCExample.main(JDBCExample.java:92)
  </code></pre>
  
  <p>Should it be an absolute path? /config.txt doesn't seem to work either.</p>
  
  <p>EDIT: 
  Here's a proof, I don't know of any better way to prove it.
  <a href="http://imgur.com/xMIUvE4" rel="nofollow">http://imgur.com/xMIUvE4</a></p>
  
  <p>Here's the terminal:<br>
  security@security:~/workspace/SecondProject/src$ ls<br>
  Config.txt  JDBCExample.class  JDBCExample.java</p>