gFile.open(sTest.c_str(), ios_base::binary ); //获取文件大小 gFile.seekg(0, ios_base::end); int nFileLen = gFile.tellg();