From ComputerCraft Wiki
Jump to: navigation, search

Grid Redstone.png  Function settings.load
Loads settings from the specified file. Any settings that've already been loaded (eg the defaults) will not be affected unless the target file contains entries with the same names.

If a file titled ".settings" is saved to the root of a computer's drive, it will be automatically loaded on startup after the default settings (without need to call this function manually).
Syntax settings.load(string path)
Returns boolean success
Part of ComputerCraft
API settings


Grid paper.png  Example
Loads all settings specified within the file "mySettings", displaying before / after lists.
print("Initial loaded settings:\n")
textutils.pagedTabulate( settings.getNames() )


print("\nResulting loaded settings:\n")
textutils.pagedTabulate( settings.getNames() )

Grid disk.png Settings API Functions
settings.set - settings.get - settings.unset - settings.clear - settings.getNames - settings.load -