long GetFileSize(char *filename)
{
long siz = 0;
FILE *fp = fopen(filename, "rb");
if (fp) {
fseek(fp, 0, SEEK_END);
siz = ftell(fp);
fclose(fp);
}
}
C语言读取二进制文件大小
最新推荐文章于 2023-04-10 21:12:21 发布
long GetFileSize(char *filename)
{
long siz = 0;
FILE *fp = fopen(filename, "rb");
if (fp) {
fseek(fp, 0, SEEK_END);
siz = ftell(fp);
fclose(fp);
}
}