title: how to set the file path in netbeans within the same build directory?
body: <p>I want to set the path for my file that i'm going to read without having to specify the root directories or the whole path.
  like this : <code>File file = new File("Text01.txt");</code> 
  or <code>Path file = Paths.get("Accounts.txt");</code>
  instead of : <code>Path file = Paths.get("C:\\Users\\B_HITMAN\\Documents\\NetBeansProjects\\BankAccountGUI\\src\\bankaccountgui\\Accounts.txt");</code>
  I even tried to put the file inside the build directory of netbeans, but it didn't work either. it show's this message :</p>
  
  <pre><code>Exception in thread "main" java.io.FileNotFoundException: Text01.txt (The system cannot find the file specified)
  at java.io.FileInputStream.open(Native Method)
  at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:138)
  at assignment01.Assignment01.main(Assignment01.java:19)
  Java Result: 1
  </code></pre>