-------------------------------------------------------------------------
| 52 | |
| 53 | //------------------------------------------------------------------------- |
| 54 | void WriteContentTo(const std::string& content, const fs::path& path) |
| 55 | { |
| 56 | std::ofstream ofs(path.string(), std::ios::binary); |
| 57 | |
| 58 | if (!ofs) |
| 59 | THROW(L"Cannot open file" << path); |
| 60 | ofs << content; |
| 61 | ofs.flush(); |
| 62 | } |
| 63 | |
| 64 | //------------------------------------------------------------------------- |
| 65 | std::string GenerateTemplate( |