package io.day5;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
public class TestCopy {
public static void main(String[] arys) throws Exception{
DataInputStream dis = new DataInputStream(new FileInputStream("Test/xy.jpg"));
DataOutputStream dos = new DataOutputStream(new FileOutputStream("Test/wd.jpg"));
int wd;
while((wd=dis.read())!=-1){
dos.write(wd);
}
dos.close();
dis.close();
}
}