Results 1 to 3 of 3

Thread: Saving my user editted variables?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2002
    Posts
    121

    Saving my user editted variables?

    I must have over a hundred string variables in my program, and the user can edit each of them to customize it to say what he/she wants. However, the changed variables don't save after the program is exited and I want them to. How do i do this?

    Do I save them to the registry? to a file?

    I haven't really thought much of this "minor" detail until now, but i'm quite worried. i'm afraid i may be a little too late in addressing this issue.

    Thanks, Brad

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106
    The registry is discouraged in .NET. However, I read something about configuration files, though I haven't used them yet. Apparently there are some objects to help create these. The files are XML.

    Alternatively, you could use a text file.

  3. #3
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Look here:
    http://216.26.168.92/vbworld/browse.aspx?category=C%23

    It is in C#, but it is what you want. I did the registry one, then another person reworked my code to save to an XML file. This will propably work for you with some modifications.

Posting Permissions

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



Click Here to Expand Forum to Full Width