469,327 Members | 1,247 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,327 developers. It's quick & easy.

Create a configuration file (XML or INI)

Hi,

I would like to create a configuration file using INI file or XML.
Does anyone as a very good example about it please ?
i've seen several XML example but not all are working or are quite simple to
maintain...

thanks a lot.
Nov 21 '05 #1
5 9003
Well, depends on what you want to do. In .NET, you can create an App.Config
file (just right-click on solution explorer for your project and pick Add
New Item, App.Config). This is an XML file that you can put whatever
settings you want in as long as you follow the standards. You can they use
the System.Configuration.ConfigurationSettings.AppSett ings functions to read
the values in the XML file. If you search on that class, you'll get some
examples. However, it's exactly like an INI file because there are no
functions to modify it, and modifications are ignored while the program runs
because the file is only read at the beginning of your app startup.

Here are a few links that might help you with some alternatives, though one
is in C#.

http://www.developer.com/net/asp/article.php/3287991
http://www.codeproject.com/csharp/cs_ini.asp
http://www.devx.com/dotnet/Article/7008/1954?pf=true

-Rob Teixeira

"Maileen" <P.M.@discussions.microsoft.com> wrote in message
news:A4**********************************@microsof t.com...
Hi,

I would like to create a configuration file using INI file or XML.
Does anyone as a very good example about it please ?
i've seen several XML example but not all are working or are quite simple to maintain...

thanks a lot.

Nov 21 '05 #2
See

http://www.kjmsolutions.com/xmlsettings.htm
"Maileen" <P.M.@discussions.microsoft.com> wrote in message
news:A4**********************************@microsof t.com:
Hi,

I would like to create a configuration file using INI file or XML.
Does anyone as a very good example about it please ?
i've seen several XML example but not all are working or are quite simple
to
maintain...

thanks a lot.


Nov 21 '05 #3
Unfortunately, this is a really small part.
And i already used it..

"scorpion53061" wrote:
See

http://www.kjmsolutions.com/xmlsettings.htm
"Maileen" <P.M.@discussions.microsoft.com> wrote in message
news:A4**********************************@microsof t.com:
Hi,

I would like to create a configuration file using INI file or XML.
Does anyone as a very good example about it please ?
i've seen several XML example but not all are working or are quite simple
to
maintain...

thanks a lot.


Nov 21 '05 #4
Hi

CodeProject Released this link in their latest email
http://www.codeproject.com/dotnet/XMLSettingsFile.asp I think you should
find it is a very simple way of creating an XML settings file.

Mike.

"Maileen" <P.M.@discussions.microsoft.com> wrote in message
news:A4**********************************@microsof t.com...
Hi,

I would like to create a configuration file using INI file or XML.
Does anyone as a very good example about it please ?
i've seen several XML example but not all are working or are quite simple to maintain...

thanks a lot.


Nov 21 '05 #5
Care to explain what is lacking?

It is actually quite simple.

"Maileen" <Ma*****@discussions.microsoft.com> wrote in message
news:7A**********************************@microsof t.com:
Unfortunately, this is a really small part.
And i already used it..

"scorpion53061" wrote:
See

http://www.kjmsolutions.com/xmlsettings.htm
"Maileen" <P.M.@discussions.microsoft.com> wrote in message
news:A4**********************************@microsof t.com:
Hi,

I would like to create a configuration file using INI file or XML.
Does anyone as a very good example about it please ?
i've seen several XML example but not all are working or are quite
simple
to
maintain...

thanks a lot.



Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Famille Delorme | last post: by
5 posts views Thread by Ivan Weiss | last post: by
7 posts views Thread by Maileen | last post: by
1 post views Thread by Alan T | last post: by
1 post views Thread by angelhouse | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by listenups61195 | last post: by
reply views Thread by Purva khokhar | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.