C语言检测文件大小代码
#include <stdio.h> int main() { FILE *FileToCheck; long filesize; FileToCheck = fopen("filename", "rb"); fseek(FileToCheck, 0, SEEK_END); filesize = ftell(FileToCheck); fclose(FileToCheck); return 0; }
C语言检测文件大小代码
#include <stdio.h> int main() { FILE *FileToCheck; long filesize; FileToCheck = fopen("filename", "rb"); fseek(FileToCheck, 0, SEEK_END); filesize = ftell(FileToCheck); fclose(FileToCheck); return 0; }