Storing Settings

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BSOB
    New Member
    • Jul 2006
    • 77

    Storing Settings

    I am just wondering about how practical it is to use the registry to store settings.
    I have several boolean values that are currently being stored in the regestry for my application and a seperate text file that stores up to 255 strings. i knew that big chunks of data (the strings) had no place in the registry but if i am going to be reading a text file at program load anyways, should i just throw my small settings into that file aswell?
    what would be considered "good programming practice"?

    also, is it snobby of me to put my program's textfile into the system 32 folder? my program would (under normal/most operating conditions) be located in the system 32 folder and if a user were to edit the accompanying textfile without knowledge of file syntax/format it would result in complete loss of data stored in it (saved strings and potentially the small program settings).

    the data i am storing is not life or death if lost but i would prefur to not have to worry about it dissapearing on a user as that could result in great inconvenience, especially since they would not find out it was gone until the moment they needed it. can i change the readonly/locked property of a text file at run time?
    thanks
  • sashi
    Recognized Expert Top Contributor
    • Jun 2006
    • 1749

    #2
    Hi BSOB,

    an INI file is the would be a great substitute.. it's almost like stroing values in the TEXT file too.. INI allows you to store values grouped by section..

    kindly refer to below attached link, good luck and take care my fren.. :)

    Comment

    • BSOB
      New Member
      • Jul 2006
      • 77

      #3
      Much appreciated. I also found an article on that page for a faster pset substitute.

      Comment

      Working...