title: Get file from project folder using java
body: <p>I want to get File from project folder by using &quot;File class&quot;, How can I do that?</p>
  <pre><code>File file=new File(&quot;x1.txt&quot;);
  </code></pre>