BufferedInputStream bis = new BufferedInputStream(new FileInputStream("F:\\张宇 - 给你们.mp3"));
BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("copy.mp3"));
int a;//定义变量
while((a = bis.read()) != -1){
bos.write(a);
}
bis.flush();//这里错误有谁知道为什么呢,前面都没问题
bos.flush(); |
|