(String[] args)
| 13 | */ |
| 14 | public class CopyAviDemo { |
| 15 | public static void main(String[] args) throws IOException { |
| 16 | // ��װ����Դ |
| 17 | FileInputStream fis = new FileInputStream("e:\\DOS����.avi"); |
| 18 | // ��װĿ�ĵ� |
| 19 | FileOutputStream fos = new FileOutputStream("copy.avi"); |
| 20 | |
| 21 | // ����� |
| 22 | int by = 0; |
| 23 | while ((by = fis.read()) != -1) { |
| 24 | fos.write(by); |
| 25 | } |
| 26 | |
| 27 | // �ͷ���Դ |
| 28 | fos.close(); |
| 29 | fis.close(); |
| 30 | } |
| 31 | } |