Posted by Bobp12404 on August 09, 2008
In Reply to Write/copy ini section to registry posted by Bob
p12404 on August 09, 2008
: I can save some configuration settings for my app to an ini file for loading when the app starts
up. I would like to be able to save those same settings to the registry, optionally loaded from the
ini files. Can someone explain to me how to load the ini/text file to the registry using name/value
pairs? The ini structure is something like the following:
: [XSettings]
: color=blue
: color=red
: color=green
: [YSettings]
: range=high
: range=mid
: range=low
: [Zsettings]
: when=before
: when=now
: when=after
Sorry, forgot to add where in the registry. I 'think' the following keys would be appropriate:
HKEY_CURRENT_USER\Software\MyApp\XSettings
HKEY_CURRENT_USER\Software\MyApp\YSettings
HKEY_CURRENT_USER\Software\MyApp\ZSettings
Related articles
Follow Ups