title: Eclipse wont recognize or read .dat file even though I can see it in package explorer
body: <p>I'm pretty sure there is a simple reason for this, but after combing through google hits I can't figure it out.</p>
  
  <p>Problem: I am trying to read from a .dat file I created and placed in the src folder of the java project, but eclipse doesn't recognize it. </p>
  
  <p>Things I have tried, 1. refreshing project. 2. placing file manually in many places. 3.saving and restarting.</p>
  
  <p>Data File </p>
  
  <pre><code>2
  12087 400
  7418 978
  </code></pre>
  
  <p>Code</p>
  
  <pre><code>import java.io.*;
  import java.util.*;
  
  public class Distance {
  
  public static void main(String[] args) throws IOException {
  
  Scanner q = new Scanner (new File("distance.dat"));
  
  int count = Integer.parseInt(q.nextLine().trim());
  
  System.out.println(count);
  
     }
  
  }
  </code></pre>
  
  <p>Package Explorer
  <img src="https://i.stack.imgur.com/qKGni.png" alt="Package Explorer"></p>
  
  <p>Debug Error
  <img src="https://i.stack.imgur.com/sveTx.png" alt="Debug Error"></p>