title: How to find the path of a file local eclipse project
body: <p>I have created a .txt file in my Eclipse Java project, and I want to find out the path to it so I can use it for a Scanner. I <strong><em>do not</em></strong> want to find out the path on my local drive, as I will be planning to share the program to someone else, and they will have a different folder structure, rather a path that can be used on anybodies machine.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>this.file = new File("&lt;insert path here&gt;");
  </code></pre>