日期:2014-05-20 浏览次数:20915 次
public static void backup(File f01,File f02)throws Exception { // File f01 = new File(sourcePath); // File f02 = new File(path); int temp=0; FileInputStream fis = new FileInputStream(f01); FileOutputStream fos = new FileOutputStream(f02); while(fis.read()!=-1) { fos.write(fis.read()); }
public static void backup(File f01,File f02)throws Exception { // File f01 = new File(sourcePath); // File f02 = new File(path); int temp=0; FileInputStream fis = new FileInputStream(f01); FileOutputStream fos = new FileOutputStream(f02); while((temp=fis.read())!=-1) { fos.write(temp); }
while(fis.read()!=-1) { fos.write(fis.read()); }