FILE *fp=fopen("F:\\QQBrowser_Setup_DNF.exe", "rb"); fseek(fp, 0, SEEK_END); long size = ftell(fp); fseek(fp, 0, SEEK_SET); vector<unsigned char> vec; vec.resize(size); fread(&vec[0], sizeof(char), size, fp); fclose(fp);
FILE *fp=fopen("F:\\QQBrowser_Setup_DNF.exe", "rb"); fseek(fp, 0, SEEK_END); long size = ftell(fp); fseek(fp, 0, SEEK_SET); vector<unsigned char> vec; vec.resize(size); fread(&vec[0], sizeof(char), size, fp); fclose(fp);
转载于:https://www.cnblogs.com/LiZiliang/p/9094615.html