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
secion
The 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");
xtd::configuration::file_settings
Represents an object for storing and retrieving configuration information using text files in INI for...
Definition
file_settings.h:32
xtd
configuration
file_settings
Generated on Sat Sep 14 2024 21:25:19 for xtd by
Gammasoft
. All rights reserved.