Shows how to use xtd::consiguration::file_settings object.
#include <xtd/configuration/file_settings>
#include <xtd/console>
auto write_file_settings() {
file.
top_file_comment(
"Settings file used by file_settings example.\nCopyright (c) 2024 Gammasoft. All rights reserved.");
file.write("auto_close", true);
file.write("caption", "file_settings example");
file.write("Thread \"Process\"", "timeout", 100_ms);
file.save();
}
auto reset_file_settings() {
}
auto read_file_settings() {
}
auto main() -> int {
write_file_settings();
read_file_settings();
}
Represents an object for storing and retrieving configuration information using text files in INI for...
Definition file_settings.hpp:32
xtd::string top_file_comment() const noexcept
Gets top file comment text.
void reset()
Reset current settings.
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
Contains the types that provide the programming model for handling configuration data.
Definition file_settings.hpp:17
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8