摘要: public static void main(String[] args) throws IOException { File file = new File("olol\\a.txt");//创建要写入的文件路径文件不存在IO流会自动创建,也可以直接创建 OutputStreamWriter o 阅读全文
posted @ 2020-12-17 11:19 MikiKawai 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 思路: 判断 即将 复制的文件是文件夹还是文件 遍历需要复制的源文件夹 如果是文件夹,就通过流创建一个同样的子文件夹 如果是文件,就复制过去 接下来上代码 public class Demo1 { public static void main(String[] args) { //裁剪的文件 St 阅读全文
posted @ 2020-12-17 11:17 MikiKawai 阅读(265) 评论(0) 推荐(0) 编辑