title: Read file from another package - Java
body: <p>I'm trying to access a file from another package:
      -Using LoadDatabase from Main package to access DB.txt from resources.</p>
  
  <p><a href="https://i.stack.imgur.com/l6zGF.png" rel="nofollow noreferrer">Image Here</a></p>
  
  <p>When I do</p>
  
  <pre><code>File file = new File("/com/Convocatoria/resources/DB.txt");
  Scanner sc = new Scanner(file);
  </code></pre>
  
  <p>It gives me this error</p>
  
  <blockquote>
    <p>Unhandled exception type FileNotFoundException</p>
  </blockquote>