Write the contents of an INIReader to an ini file.
More...
#include <ini.h>
|
| static void | write (const std::string &filepath, const INIReader &reader, const bool overwrite=false) |
| | Write the contents of an INI file to a new file.
|
| |
Write the contents of an INIReader to an ini file.
◆ write()
| static void inih::INIWriter::write |
( |
const std::string & | filepath, |
|
|
const INIReader & | reader, |
|
|
const bool | overwrite = false ) |
|
inlinestatic |
Write the contents of an INI file to a new file.
- Parameters
-
| filepath | The path of the output file |
| reader | The INIReader object to write to the file |
| overwrite | Whether to just overwrite an existing file |
- Exceptions
-
| std::runtime_error | if the output file already exists or cannot be opened |
The documentation for this class was generated from the following file: