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

◆ read() [3/4]

xtd::string xtd::configuration::file_settings::read ( const xtd::string section,
const xtd::string key,
const xtd::string default_value 
)
noexcept

Reads a value for specified key in the specified section. If not found default value is used.

Parameters
sectionThe section where the key is read.
keyThe key used to read a value.
default_valueA string used if value not found.
Returns
A string that represent the value associate to the key.
Remarks
Use xtd::string::empty_string for section paramreter to read keys of the global section.