ini-cpp
Loading...
Searching...
No Matches
inih::INIWriter Class Reference

Write the contents of an INIReader to an ini file. More...

#include <ini.h>

Static Public Member Functions

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.
 

Detailed Description

Write the contents of an INIReader to an ini file.

Member Function Documentation

◆ 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
filepathThe path of the output file
readerThe INIReader object to write to the file
overwriteWhether to just overwrite an existing file
Exceptions
std::runtime_errorif the output file already exists or cannot be opened

The documentation for this class was generated from the following file: