摘要: public class FileCopy { /** * 1、在D盘创建一个文件,用于存储C盘文件中的数据。 * 2、定义读取流和C盘文件关联 * 3、通过不断的读写完成数据存储。 * 4,关闭资源 */ public static void main(String[] args) { FileWriter fw = null; FileReader fr = null; try { fw = new FileWriter("D:/java.txt",true); fw.write("abcde"); fw.flush(); fr = new File 阅读全文
posted @ 2013-09-06 00:02 微风夜明 阅读(208) 评论(0) 推荐(0) 编辑