title: Java, reading a file from current directory?
body: <p>I want a java program that reads a user specified filename from the current directory (the same directory where the .class file is run).</p>
  
  <p>In other words, if the user specifies the file name to be "myFile.txt", and that file is already in the current directory:</p>
  
  <pre><code>reader = new BufferedReader(new FileReader("myFile.txt"));
  </code></pre>
  
  <p>does not work. Why?</p>
  
  <p>I'm running it in windows.</p>