摘要: .txt文件中添加内容,确保追加内容成功 File file; OutputStreamWriter osw = null; FileOutputStream fos = null; try { file =new File("C:\\Users\\Administrator\\Desktop\\t 阅读全文
posted @ 2021-11-10 16:35 ZikC 阅读(811) 评论(0) 推荐(0) 编辑
摘要: 1. 写一段代码,要求能够读出.txt文件中的内容,如果有中文,、保证不会乱码 String fr ="C:\\Users\\Administrator\\Desktop\\test.txt"; InputStreamReader isr = null; try {// fr =new FileRe 阅读全文
posted @ 2021-11-10 11:53 ZikC 阅读(114) 评论(0) 推荐(0) 编辑