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 following commands can be used to write data: WritePreferenceString(), WritePreferenceLong(), WritePreferenceFloat(), PreferenceGroup() and PreferenceComment().
Note: Preferences operation does not support editing, so to save any changes you must always use this command and write all parameters again.
Once all write operations have been done, ClosePreferences() is used to close effectively the preference file.
Supported OS
Windows, Linux, MacOS X