2014年8月14日

使用对象流将数据以对象形式进行读写

摘要: 1 import java.io.*; 2 3 public class Test { 4 5 public static void main(String[] args) { 6 7 File f = new File("a.txt"); 8 ... 阅读全文

posted @ 2014-08-14 22:51 Arvin-9 阅读(412) 评论(0) 推荐(0)

使用File类新建一个文本文件

摘要: 新建一个a.txt的文本文件 1 import java.io.*; 2 3 public class NewFile{ 4 5 public static void main(String[] args) { 6 File f = new File("a.txt"); ... 阅读全文

posted @ 2014-08-14 21:27 Arvin-9 阅读(331) 评论(0) 推荐(0)

导航