title: How to read file from relative path in Java project? java.io.File cannot find the path specified
body: <p>I have a project with 2 packages:</p>
  <ol>
  <li><code>tkorg.idrs.core.searchengines</code></li>
  <li><code>tkorg.idrs.core.searchengines</code></li>
  </ol>
  <p>In package (2) I have a text file <code>ListStopWords.txt</code>, in package (1) I have a class <code>FileLoadder</code>. Here is code in <code>FileLoader</code>:</p>
  <pre><code>File file = new File(&quot;properties\\files\\ListStopWords.txt&quot;);
  </code></pre>
  <p>But I have this error:</p>
  <blockquote>
  <p>The system cannot find the path specified</p>
  </blockquote>
  <p>Can you give a solution to fix it?</p>