My Java program needs a local text file, temp.txt. My Java program is
located in Eclipse workspace, Test_Workspace. One easy way for the Java
program to find and use the text file is to hard-code the absolute path
to the file(i am using linux). But I don't like it. I hope to take
advantage of Eclipse workspace.
temp.txt has been added to the workspace, Test_Workspace, shown in
Package Explorer. But the following line cannot find the file:
BufferedReader inputStream = new BufferedReader(new FileReader("temp.txt"));