when to read configuration file
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: when to read configuration file

  1. #1
    Join Date
    Dec 2007
    Posts
    2

    Unhappy when to read configuration file

    Hi all..i have doubt abt the use of configuration files.
    I am working on an application which needs to read a variable from an xml configuration file. The value is valid only when a particular event is raised by the user.
    Which is a good design solution? To go for initial read using SAX or provide the user with a mechanism to write to the xml when that event is raised and then continue with the operation using DOM?
    I feel SAX being simple and light on memory must be implemented for this..but then am not so sure if its a user friendly solution to make the user edit config files before loading application.

    pls reply soon

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,251

    Re: when to read configuration file

    What environment is your app running in? What technologies are you using?

  3. #3
    Join Date
    Dec 2007
    Posts
    2

    Re: when to read configuration file

    i am developing code in visual studio integration for qt...
    C++ is language.

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,251

    Re: when to read configuration file

    If the application has a UI, why not let the user make the change in the application?

    Underneath the covers, you can write the users changes to the xml and reread the xml file.

    If the xml file is small, just read the file with the DOM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center