import java.io.*;
public class Aaa{
public static void main(String[] ashs)throws IOException
{
FileInputStream fis=new FileInputStream(ashs[0]);
FileOutputStream fos=new FileOutputStream(ashs[1]);
byte[]buf=new byte[512];
int n=0;
n=fis.read(buf,0,512);
while(n!=-1){
fos.write(buf,0,512);
}fis.close();
fos.close();
}
}
编译后,图片被无限复制,请大家解决,谢谢 |
|