private void CopyFile(File originf,File clonef) throws IOException{
int length=65535; //根据具体情况而定的文件长度
FileInputStream in=new FileInputStream(originf);
FileOutputStream out=new FileOutputStream(clonef);
byte[] buf=new byte[length];
while(true){
int num=in.read(buf);
if(ins==-1){
in.close();
out.flush();
out.close();
}else
out.write(buffer,0,num);
}
}