title: Getting html file's content which is in a package
body: <p>I have added an html file into my JavaFX Project structure. This file and <code>Controller</code> class are in the same folder of the project. How can I use that file's content as a string in <code>Controller</code> class?</p>
  
  <p>I have tried this but it did not work:</p>
  
  <pre><code>String line;
  BufferedReader bufferedReader = new BufferedReader(new FileReader("src/Untitled.html"));
  while((line = bufferedReader.readLine()) != null) {
    System.out.println(line);
  }
  bufferedReader.close();
  </code></pre>
  
  <p><strong>Project structure</strong></p>
  
  <p><a href="https://i.stack.imgur.com/RP2Pr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RP2Pr.png" alt="screenshot of project structure"></a></p>