OpenPreferences()
Syntax
Result = OpenPreferences(FileName$)Description
Open a previously existing preference file. If 'Result' is 0 then the file can't be opened. Neverless, if the file can't be opened, the programmer can still use the the read commands and it will return always the specified default value, very useful to initialize in one step the program variables. The following commands can be used to read data: ReadPreferenceString(), ReadPreferenceLong(), ReadPreferenceFloat(), and PreferenceGroup().
Once all read operations have been done, ClosePreferences() is used to close effectively the preference file.
Supported OS
Windows, Linux, MacOS X