2023年12月29日发(作者:)
n(i); String line; BufferedReader ir = new BufferedReader(i); List
}
/** * 通过拷贝和重命名提取壁纸 getWallpaper */ Properties prop = perties(); String username= perty(""); for(int k=0;k<();k++) { copyF(username, k, (k)); } } catch (IOException e) { tackTrace(); } }
public static void copyF(String username,int xxx,String fileP) throws IOException { String path = "C:Users"+username+"Desktopchennyuuu@."+xxx+".jpg"; File oldFile = new File(fileP); File file = new File(path); FileInputStream in = new FileInputStream(oldFile); FileOutputStream out = new FileOutputStream(file);; byte[] buffer=new byte[1024*1024*1024];//2097152 设1个G的容量 int readByte = 0; while((readByte = (buffer)) != -1){ (buffer, 0, readByte); } (); (); }}View Code


发布评论