xtd 0.2.0
Loading...
Searching...
No Matches

◆ operator[]() [2/2]

string_dictionary & xtd::configuration::file_settings::operator[] ( const xtd::string section)
noexcept

Gets key-value pairs of the specified section.

Parameters
secionThe section to get the key-value pairs
Returns
The key-value pairs of the section.
Examples
Use this operator to write value to section like xtd::configuration::file_settings::write method.
auto fs = file_settings {"my_file.ini"};
fs["section1"]["key1"] = "value1";
// Is equivalent to call :
// fs.write("section1", "key1", "value1");
Represents an object for storing and retrieving configuration information using text files in INI for...
Definition file_settings.h:32