
IO流
Silence丶你的名字
你的名字
展开
-
普通IO流字符输入输出流文件拷贝
import java.io.*;/** * 普通IO流字符输入输出流文件拷贝 * * @author silence */public class Silence { public static void main(String[] args) throws Throwable { //输入流 InputStreamReader reader = new InputStreamReader(new FileInputStream("D:\\a.txt.原创 2021-04-26 12:55:30 · 135 阅读 · 0 评论 -
较简单的字节输入流输出流拷贝文件
import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;/** * 较简单的字节输入流输出流拷贝文件 * * @author silence */public class Silence { /** * 需要被拷贝的文件地址 file可以对此文件做获取名字等操作,也可以直接把地址填到流里面 * 输入流 */ private stati.原创 2021-04-26 12:54:11 · 175 阅读 · 0 评论 -
* IO流递归拷贝一个文件夹 按源文件夹格式拷贝
import java.io.*;/** * IO流递归拷贝一个文件夹 按源文件夹格式拷贝 * * @author silence */public class IoCopy2 { private static int count = 0; /** * 需要拷贝的起始地“文件夹路径” */ private static final File START = new File("C:\\Users\\Administrator\\Desktop.原创 2021-04-21 18:10:00 · 65 阅读 · 0 评论