public class TestMain { public static void main(String[] args) { FileInputStream fis = null; FileOutputStream fos = null; try { fis = new FileInputStream("C:/123.txt"); fos = new FileOutputStream("C:/to23.txt"); byte[] b = new byte[1024]; while (true) {// 循环读取数据