请教一个有点傻帽的问题?
程序代码:
import *; public class FileTest { /** * @param args */ public static void main(String[] args) throws FileNotFoundException { String dir = System.getProperty("user.dir"); System.out.println(dir); PrintWriter out = new PrintWriter("myfile.txt"); out.print(dir); } }
为什么运行完打开myfile.txt是空白滴啊?