日期:2014-05-20 浏览次数:20815 次
class Copy1 { static void copy()throws Exception { FileInputStream fi = new FileInputStream("fists.mp3"); FileOutputStream fo = new FileOutputStream("aa.mp3"); byte [] by = new byte [1024*100]; [color=#FF0000]//new byte [657832];[/color] int num = 0; while ((num=fi.read(by))!=-1) { fo.write(by,0,num); fo.flush(); } fo.close(); fi.close(); } }