摘要: //根据不同的系统平台得到换行符 private static final String separator = System.getProperty("line.separator"); 阅读全文
posted @ 2018-08-04 11:48 仙人掌的成长 阅读(140) 评论(0) 推荐(0) 编辑
摘要: //每次读取的字节长度,一般都是1024的倍数 private static final int BUF_SIZE = 1024; public static void main(String[] args) { // TODO Auto-generated method stub FileRead 阅读全文
posted @ 2018-08-04 10:22 仙人掌的成长 阅读(154) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { // TODO Auto-generated method stub FileReader fr = null; FileWriter fw = null; try { fr = new FileReader("dem 阅读全文
posted @ 2018-08-04 10:15 仙人掌的成长 阅读(175) 评论(0) 推荐(0) 编辑