Forums Assignment Help How can I automatically locate a programs configuration

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1240
    Aakanksha
    Participant

    How can I automatically locate a programs configuration files in the same directory as the executable?

    #9804
    Aakanksha
    Participant

    It’s hard, in general; Even if you can figure out a workable way to do it, you might want to consider making the program’s auxiliary (library) directory configurable, perhaps with an environment variable. (It’s especially important to allow variable placement of a program’s configuration files when the program will be used by several people, e.g. on a multiuser system.)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.