11 2022 档案
摘要:#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <windows.h> int main() { FILE* fp = NULL; FILE* new_fp = NULL; long file_size; char* file_
阅读全文
摘要:void Funcation4() { char* file_buffer; long file_size = 0; FILE* fp; fp = fopen("notepad-32bit.exe", "rb"); fseek(fp, 0, SEEK_END); file_size = ftell(
阅读全文
摘要:1 void Funcation4() 2 { 3 char* file_buffer; 4 long file_size = 0; 5 FILE* fp; 6 fp = fopen("notepad-32bit.exe", "rb"); 7 fseek(fp, 0, SEEK_END); 8 fi
阅读全文
摘要:///20221118malloc获取文件大小,并读取内存中 /// void Funcation3() { //保存读入到内存中的结果 //创建一个buffer,用来将打开的文件放入申请的内存中 char* buffer; //这里保存文件长度 long file_size = 0; //打开文件
阅读全文