File not found

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tony Johansson

    #1

    File not found

    Hello!

    I'm using Windows and I want to know how should I do to make the system to
    search in the same directory
    as the project file or exe file when looking for a filename. I don't want to
    have to specify the whole path when looking for the file. For example like I
    do here I don't want to have to specify this whole path I just want to be
    able to specify
    the filename "accountFile.tx t".
    input = new BufferedReader( new FileReader("C:/Documents and
    Settings/Tony/kau/java/lab4b_MS/accountFile.txt ") );



    //Tony


Working...