2013年11月6日
摘要: 转自:http://www.cnblogs.com/rollenholt/archive/2011/09/11/2173787.html【案例1】创建一个新文件?1234567891011import java.io.*;class hello{public static void main(String[] args) {File f=new File("D:\\hello.txt");try{f.createNewFile();}catch (Exception e) {e.printStackTrace();}}}【运行结果】:程序运行之后,在d盘下会有一个名字为he 阅读全文
posted @ 2013-11-06 14:11 Stephen_init 阅读(188) 评论(0) 推荐(0)