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 technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.