Dim oConfigFile as New CBinaryINI With oConfigFile 'The file is loaded as soon as the .File property is 'changed. Setting .File = "" will unload the file. 'If the file does not exist it will be created when 'you call the Commit method. .File = "C:\My Dir\my settings.bni" 'Add a value. .WriteValue "Setting1", "A Value", "Section A" 'normal ini files cannot store the following setting 'for two reasons: 1) spaces in the key, 2) carriage 'returns in the value. Notice that sSection parameter 'is optional. If not specified the value "Settings" 'is used. .WriteValue "A Setting INI files cannot store", "Bobo coco" 'Delete keys and even entire sections the same way you 'would with normal INI files. .WriteValue "Setting1", vbNullString, "Section A" 'deletes the Setting1 key. .WriteValue vbNullString, vbNullString, "Section A" 'deletes the entire section and all keys under it. 'Write the file to disk. .Commit 'Unload the file from memory. Setting the object 'itself to Nothing also accomplishes the same thing. .File = "" End With