📜  c 获取文件大小 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:42.735000             🧑  作者: Mango

代码示例1
FILE *fp = fopen("example.txt", "r");
fseek(fp, 0L, SEEK_END);
int size = ftell(fp);