22 std::string ReadTextFile(const std::string& filePath)
24 std::ifstream ifs(filePath);
28 throw FileOpenException(filePath);
31 std::ostringstream oss;
42 void WriteBinaryFile(const std::string& filePath, const std::vector<std::uint8_t>& buffer)
44 std::ofstream ofs(filePath, std::ios_base::binary);
48 throw FileOpenException(filePath);
51 ofs.write(reinterpret_cast<const char*>(buffer.data()), buffer.size());