Hi all, I need some help on buffered reader on local file.
The code below is one my class method to read the data of
test.
I want to set the File as local file because this application will be run in other computers.
I tried to compile this but ended up getting exception from
java.
the data file is saved inside the src folder which contains all my .java files.
For your information I'm using Netbeans 7.1.2.
java.io.FileNotFoundException: subject.dat (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileReader.<init>(FileReader.java:72)
...
so may I know how to let java read my local file?