通过filelength获取文件大小


FILE* file = fopen(filepath, "rb");
if (file)
{
int size = filelength(fileno(file));
cout<< size<< endl;
fclose(file);
}

posted @ 2019-05-05 15:40  oi蒟蒻技术咸鱼  阅读(2021)  评论(0编辑  收藏  举报