2022年3月30日

字符流 输出.write('c')运行后不会出现

摘要: public static void main(String[] args) throws Exception { Writer fw = new FileWriter(new File("data.txt")); fw.write('c'); } } 运行后data.txt一篇空白。运行速度太快使 阅读全文

posted @ 2022-03-30 17:36 就想弄个啥的 阅读(165) 评论(0) 推荐(0) 编辑

FileWriter报错重名报错

摘要: //代码正确但是怎么一直报错 package come.itwu.d4_字符流; import java.io.Writer; public class FileWriter { public static void main(String[] args) throws Exception { Wr 阅读全文

posted @ 2022-03-30 17:30 就想弄个啥的 阅读(66) 评论(0) 推荐(0) 编辑

导航