Jan Panteltje
08-10-2005, 12:32 AM
On a sunny day (Fri, 7 Oct 2005 10:19:16 +0100) it happened "Angus Comber"
<angus@NOSPAMiteloffice.com> wrote in
<di5eij$48j$1$8300dec7@news.demon.co.uk>:
>Hello
>
>My past is in Windows programming (come on, don't sneer!). Program settings
>were stored in the registry. What is the approach most commonly used on
>Linux? I suspect a text .conf file but would be interested in comments.
>
>Angus
I dunno how everybody else does it, but in simple programs I use a
..something file in the users home dir if the program is called 'something'.
If the program requires a lot of setup (I usually save all states, so
when you exit and restart you are at the same point, and never lose data or
configuration in case of a crash or power failure for example) then I use a
..something directory in the users home dir.
Something like this
..something
..something/setup
..something/fonts
..something/keys
In all cases I use fprintf and fscanf and ASCII format for files.
This makes it human readable an possible to edit something...
Can be very useful.
This works for me, no idea how others do it, but recently encountered
some binary setups... bad... we have 200GB and bigger HDs these days,
plz use ASCII.
<angus@NOSPAMiteloffice.com> wrote in
<di5eij$48j$1$8300dec7@news.demon.co.uk>:
>Hello
>
>My past is in Windows programming (come on, don't sneer!). Program settings
>were stored in the registry. What is the approach most commonly used on
>Linux? I suspect a text .conf file but would be interested in comments.
>
>Angus
I dunno how everybody else does it, but in simple programs I use a
..something file in the users home dir if the program is called 'something'.
If the program requires a lot of setup (I usually save all states, so
when you exit and restart you are at the same point, and never lose data or
configuration in case of a crash or power failure for example) then I use a
..something directory in the users home dir.
Something like this
..something
..something/setup
..something/fonts
..something/keys
In all cases I use fprintf and fscanf and ASCII format for files.
This makes it human readable an possible to edit something...
Can be very useful.
This works for me, no idea how others do it, but recently encountered
some binary setups... bad... we have 200GB and bigger HDs these days,
plz use ASCII.