|
-
Oct 23rd, 2002, 12:37 PM
#1
Thread Starter
Lively Member
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
-
Oct 23rd, 2002, 12:44 PM
#2
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.
-
Oct 23rd, 2002, 01:02 PM
#3
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|