File src = new File("src.txt");
File dest = new File("dest.txt");
if(!src.exists() || !src.isFile())
{
return;
}
InputStream in = null;
OutputStream out = null;
try{
in = new FileInputStream(src);
out = new FileOutputStream(dest);
byte[] b = new byte[1024];//开辟大小为1024个字节的缓冲区
int len= 0;//表示每次读了多少个字节