Does anybody have any views on using the registry as opposed to an ini file to store and retrieve information.

Also does anybody have exmple code of setting values in the registry and then retrieving them