std::string strRecordFile = "test.txt";
struct _stat buf;
iResult = _stat(strRecordFile.c_str(), &buf);
if (iResult == 0)
{
return buf.st_size;
}
void GetLocalFileSize(const char* filename, unsigned long* pSize)
{
std::ifstream fin;
fin.open(filename, std::ios::in | std::ios::binary);
fin.seekg(0, fin.end);
size_t si = fin.tellg();
*pSize = (unsigned long)si;
}