What is the default folder that classes that extend java.io.Reader take input from? For instance, where is “data.txt” supposed to be located in a call to FileReader such as the following?
FileReader fr = new FileReader("data.txt");
In the case of a project I’m currently working on (where I’m using Eclipse and its standard project directory structure), it seems to be the bin-folder. But where’s the logic, isn’t that folder supposed to contain .class-files and similar don’t-touch compiler output?
What is standard practice here, is it really to put folders containing input data under bin/?
The file is looked for in the current working directory, the one you are in when you start your application.