Option :: saveSettings - Save application settings
The function stores current application settings to the file passed in sPath. When the file does already exist, it is checked, whether it is a valid XML file. If not, it will be cleared. The configuration passed in sName will be updated or added (when not yet existing). By passing different configuration names , several settings may be stored in one configuration file. Reusing configuration names will update an existing configuration by updating existing and adding non existing options, but not removing options from configuration.
In order to get exactly the current setting when reusing configuration names, the configuration element has to be removed from file by application before calling the function (e.g. deleting the file).
The function throws an exception when the file passed in sPath is not accessible.
Implementation details
- sPath - File path
- sName - Name