<< atomsRepositoryList ATOMS atomsSaveConfig >>

Scilab Help >> ATOMS > atomsRestoreConfig

atomsRestoreConfig

Restore the configuration from the backup file

Syntax

atomsRestoreConfig()

Description

atomsRestoreConfig checks that a config.bak file exists, and set it as the main configuration file. The backup file is deleted in the process.

Examples

// Get original setting & save configuration
v = atomsGetConfig("offline")
atomsSaveConfig(%T);

// Overwrite setting
if v == "False" then
    atomsSetConfig("offline", "True");
else
    atomsSetConfig("offline", "False");
end
// Check setting has changed
atomsGetConfig("offline")

// Restore config & check that setting is back to original value
atomsRestoreConfig();
atomsGetConfig("offline")

See also

History

VersionDescription
5.4.0 Function added

Report an issue
<< atomsRepositoryList ATOMS atomsSaveConfig >>