in reply to Re: chooseDirectory set Default
in thread chooseDirectory set Default

I've never used a config file before. Do you have any examples on how it could be done?

Replies are listed 'Best First'.
Re^3: chooseDirectory set Default
by Lawliet (Curate) on Jul 11, 2008 at 15:45 UTC

    For something as simple as the program your making (at least you made it appear simple), you can simply write the data in a fashion such as:

    initdir:/home/user initbuttonstate:active

    et cetera.

    Of course, then open the config and gather the information. Depending on the complexity of the config file, you can just split each line on a colon, and use the second variable of the array.

    <(^.^-<) <(-^.^<) <(-^.^-)> (>^.^-)> (>-^.^)>