import java.io.*;public class Ex001 {
public static void main(String[] args) throws Exception {
// TODO Auto-generated method stub
String name = "harry hacker";
double salary = 75000;
PrintWriter out = new PrintWriter("e:" + File.separator + "Tools"
+ File.separator + "test.txt");
out.print(name);
out.print(' ');
out.print(salary);
out.print("hello");
}}
写入文件没有成功,不知道错在哪里了?