CreatePreferences()
Syntax
Result = CreatePreferences(FileName$)Description
Creates a new empty preference file. If the file already exists, the file is erased. If 'Result' is 0 then the file can't be created. Once the file has been created successfully, the commands like WritePreferenceString() can be used to write data. Once some values are written in preferences, it's possible to read them back with the commands like ReadPreferenceString(). To remove a key or a group, the commands RemovePreferenceKey() and RemovePreferenceGroup() are available. To create or change the current group, use PreferenceGroup().
Once all write operations have been done, ClosePreferences() is used to write effectively the preference file back to disk.
Supported OS
Windows, Linux, MacOS X