// 打开文件,获得文件流
std::ifstream inFile(fileName.c_str(), std::ios::in | std::ios::binary);
std::ostringstream oss;
oss << inFile.rdbuf();
std::string buffer = oss.str();
inFile.close();
// 打开文件,获得文件流
std::ifstream inFile(fileName.c_str(), std::ios::in | std::ios::binary);
std::ostringstream oss;
oss << inFile.rdbuf();
std::string buffer = oss.str();
inFile.close();