Loading a default configuration file at startup
To help a user explore a new application, next to an extensive tutorial, a simple example of the content created with the application can be loaded at the first start, or maybe at any start of the application. Tinkering around with the available options helps us understand how the application works, and what kind of content manipulations are possible.
Loading a default configuration at startup can be achieved in different ways. A configuration file could be added at compile time (baked into the application), or one or more example files could be placed in a reachable folder, and the example file loaded at startup. Often, a separate configuration setting for the application is available to disable the automated loading of an example file.
As an example, we will load the configuration file config/conf.acfg
from the load and save dialogs at application startup. Thanks to the already implemented YAML parser and file-loading code...