title: I can't get netbeans to find a txt file I have in the same directory... java.io.FileNotFoundException
body: <p>I can't make it path specific because once I get this program to work (this is the last thing I have to do) I'm uploading to my university's ilearn website and it has to run on my professors computer with no modifications. I've tried a few different amalgamations of code similar to the following...</p>
  
  <pre><code>File file = new File("DataFile.txt");
  Scanner document = new Scanner(new File("DataFile.txt"));
  </code></pre>
  
  <p>Or...</p>
  
  <pre><code>java.io.File file = new java.io.File("DataFile.txt");
  Scanner document = new Scanner(file);
  </code></pre>
  
  <p>But nothing seems to work. I've got the necessary stuff imported. I've tried moving <code>DataFile</code> around in a few different folders (the <code>src</code> folder, and other random folders in the project's <code>NetBeansProjects</code> folder) I tried creating a folder in the project and putting the file in that folder and trying to use some kind of </p>
  
  <pre><code>documents/DataFile.txt
  </code></pre>
  
  <p>bit I found online (I named the folder documents). </p>
  
  <p>I've tried renaming the file, saving it in different ways. I'm all out of ideas.</p>
  
  <p>The file is just a list of numbers that are used in generating random data for this program we got assigned for building a gas station simulator. The program runs great when I just use user input from the console. But I can not get netbeans to find that file for the life of me! Help!?!?!?</p>