摘要: import java.io.*;public class TestFile { public static void main(String[] args) throws Exception { File f = new File("e://xxx//yyy"); System.out.println(f.mkdirs());//生成所有目录 //f.mkdir(); 必须xxx目录存在才能生成yyy目录 //f.createNewFile(); File f2 = new File("E://zzz//t.txt"); //不能生成文件,只能用cre 阅读全文
posted @ 2010-02-14 17:16 Kstyjobx!! 阅读(1909) 评论(0) 推荐(0) 编辑