[gtkada] configuration files

Preben Randhol randhol at pvv.org
Mon May 27 12:27:14 CEST 2002


Jacob Sparre Andersen <sparre at nbi.dk> wrote on 27/05/2002 (12:18) :
> I have not run into one yes, but there really should be one.
> And I suspect that the proper implementation for MS-Windows
> would use the "registry", where as it for Unix certainly
  ^^^^^^^^^^^^^^^^^^^^^^^

  Why? Isn't it better to use .ini files in Window, then one do not have
  to make two completely different packages, but use the same routines ?

> If you do not find a general package for this purpose, then
> you can count me in as a volunteer to help deciding on a
> package specification and to help implementing a Unix
> version of the package.

Yes it would be nice if we could come up with a general solution. At the
moment my config file is looking something like this:

[Program]
Name=Glosa
Version=0.8

[Directories]
Storage=/home/randhol/Misc/Greek/Modern_Greek_for_Foreigners/
Graphics=/usr/share/pixmaps/glosa/
Help=/usr/share/pixmaps/glosa/

[Settings]
Examine_Attempts= 2
Examine_Order=ORDERED

etc...

of course one could use XML too, but it seems a bit of an overkill.


-- 
Preben Randhol ------------------- http://www.pvv.org/~randhol/ --
                 «For me, Ada95 puts back the joy in programming.»




More information about the gtkada mailing list