这是我在java中使用打印流写入文件的代码
PrintStream stream = null;
try {
stream = new PrintStream(new File("hi.txt"));
stream.println("hi my name is chris");
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
finally{
stream.close();
}
我的问题是在我执行了这段代码之后,在eclipse中哪里可以找到hi.txt?通常当我处理文本文件时,文本文件出现在 JRE 系统库下。在这种情况下,它不