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

Well not really, because when the user restarts the program the set Directory is back to blank again. I dont want to set the initial directory for the user, I want the user to set the default directory just once and he must be able to see the set directory next time he starts the program instead of setting it each time he runs the program. I don't know if I'm being clear, let me know if you want me to explain more clearly... thx

Replies are listed 'Best First'.
Re^3: chooseDirectory set Default
by psini (Deacon) on Jul 11, 2008 at 14:05 UTC

    Yes, it's clear, but if you want your program to remember the user choice after program termination, you need to store this info outside the program.

    Natural choices could be a database (if your application uses one) or a configuration file.

    Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."

      It makes sens... Unfortunately, the appication doesn't use a database and I never worked with a configuration file before. Is there any examples that I could look at?