std::string readDirectoryFile(std::string path)
{
std::ifstream file(path, std::ios::in | std::ios::binary);
if (!file) {
std::cerr << "Error opening file: " << path << std::endl;
return "";
}
std::stringstream buffer;
// 读取文件内容到字符串流
buffer << file.rdbuf();
//std::cerr << "File content: \n" << buffer.str() << std::endl;
return buffer.str();
}