| 110 | } |
| 111 | |
| 112 | void OvTools::Filesystem::IniFile::Rewrite() const |
| 113 | { |
| 114 | std::ofstream outfile; |
| 115 | outfile.open(m_filePath, std::ios_base::trunc); |
| 116 | |
| 117 | if (outfile.is_open()) |
| 118 | { |
| 119 | for (const auto& [key, value] : m_data) |
| 120 | { |
| 121 | outfile << key << "=" << value << std::endl; |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | outfile.close(); |
| 126 | } |