|
-
Nov 15th, 2003, 03:59 PM
#1
Thread Starter
Addicted Member
configuration file creation, how to?!
i have created a simple xml configuration file for my program, it simply reads the values from the xml file during the app loading, using xmltextreader , is that how the usually do it? or should i take a look at the system.configuration namespace? anything usefull there , or its just used for .net config files and not costum files?
-
Nov 15th, 2003, 04:26 PM
#2
The Configuration namespace is pretty much just for app.config files. The XMLTextReader is fine, really its just a matter of preference. I prefer to use the XMLDocument class but whatever works for you is what you should use.
-
Nov 15th, 2003, 04:36 PM
#3
Thread Starter
Addicted Member
thanks, i'll start using xmldocumnet too, the good thing about it is that we can use its events
-
Nov 15th, 2003, 06:09 PM
#4
PowerPoster
If you are using a app.config file, and you are putting app settings in it, then it is best to just use the System.Configuration namespace to get to them, only one line of code to get your setting:
Dim mySetting as String = ConfigurationSettings.AppSettings("MySetting")
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
|