()
| 31 | |
| 32 | // �����ֽ���һ�ζ�дһ���ֽ� |
| 33 | public static void method1() throws IOException { |
| 34 | FileInputStream fis = new FileInputStream("d:\\��������.mp4"); |
| 35 | FileOutputStream fos = new FileOutputStream("copy1.mp4"); |
| 36 | |
| 37 | int by = 0; |
| 38 | while ((by = fis.read()) != -1) { |
| 39 | fos.write(by); |
| 40 | } |
| 41 | |
| 42 | fos.close(); |
| 43 | fis.close(); |
| 44 | } |
| 45 | |
| 46 | // �����ֽ���һ�ζ�дһ���ֽ����� |
| 47 | public static void method2() throws IOException { |