#include<iostream>
#include<fstream>//
{
std::fstream file;
file.open("111.dat", std::ios::in|std::ios::binary);
file.seekg(0, std::ios::end);
int fileSize = file.tellg();
file.close();
}
c++获取文件大小
阅读 114
2023-01-15
#include<iostream>
#include<fstream>//
{
std::fstream file;
file.open("111.dat", std::ios::in|std::ios::binary);
file.seekg(0, std::ios::end);
int fileSize = file.tellg();
file.close();
}
相关推荐
精彩评论(0)