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

◆ read() [4/4]

template<typename type_t >
type_t xtd::configuration::file_settings::read ( const xtd::string section,
const xtd::string key,
const type_t &  default_value 
)
inline

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.