[Mono-list] Registry, text or binary?

Dietmar Maurer dietmar@ximian.com
18 Sep 2002 18:39:45 +0200


On Wed, 2002-09-18 at 17:22, Everaldo Canuto wrote:
> Hello,
> 
> I start a implementation of Registry Classes on Linux.
> For emulate a WinRegistry classes on Linux I think to save public data 
> in the file /etc/system.reg and a private data on /home/user/.user.reg
> My problem is to decide which format to use to save data.
> Text file or binary file? If binary, What type of algoritimo to use?

Simply make the backend pluggable ;-) It would be then possible for the
user/admin to select the backend. Both gconf and bonobo-conf uses such
pluggable approach.  

The nice thing is that we now have "interfaces" in C#, so its easy to
define/implement such plug-ins.

- Dietmar