DWORD dwFileSize = 0; string sFileName=strLogFilePath; ifstream inFile(sFileName.c_str()); if(!inFile.is_open()) { LOG_INFO("文件 %s打開錯(cuò)誤 %d",strLogFilePath.c_str(),GetLastError()); return V_ERR; } inFile.seekg(0,ios::end); dwFileSize = inFile.tellg(); inFile.close(); |
|