CreatePreferences()
语法
Result = CreatePreferences(Filename$ [, Flags])概要
Creates a new empty preference file. If the file already exists, the file is erased.
参数
Filename$ The filename of the new preference file. Flags (optional) It can be a combination of the following values: #PB_Preference_NoSpace: no spaces will be put around the equal sign joining key and values. It can be useful when dealing with external preferences files which doesn't accept spaces around equal sign. #PB_Preference_GroupSeparator: add an empty line between the groups to ease readability of the file.
返回值
Nonzero if the file has been successfully created, zero otherwise.
Remarks
Once created, the functions like WritePreferenceString() can be used to write data. When values are written in preferences, it's possible to read them back with the functions like ReadPreferenceString().
To remove a key or a group, use RemovePreferenceKey() and RemovePreferenceGroup(). To create or change the current group, use PreferenceGroup().
Once all write operations are done, ClosePreferences() needs to be called to really write the preferences back to disk.
参阅
ClosePreferences()
已支持操作系统
所有