package day17;
import java.io.*;
public class CopyMp3 {
/**
* @param args
*/
public static void main(String[] args)throws Exception {
// TODO Auto-generated method stub
BufferedInputStream bufis=
new BufferedInputStream(new FileInputStream("e:/KuGou/张信哲 - 从开始到现在.mp3"));
BufferedOutputStream bufos=
new BufferedOutputStream(new FileOutputStream("d:/a/1.mp3"));
int by=0;
while((by=bufis.read())!=-1)
{
bufos.write(by);
}
bufos.close();
bufis.close();
}
}
|
|