473,387 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 9166
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Famille Delorme | last post by:
Sorry if this discussion are already submited, but I don't find anything really interresting for me. And sorry for my bad english, it is not my native language. I wrote a program in Python for a...
7
by: | last post by:
In the beginning we had Ini files. Later we had registery files. Now have xml files and our read-only myapp.config file. My question now, is what is the best way to store and load user and...
7
by: MrNobody | last post by:
I was a Java developer so I'm used to using property files as a means to keep configuration settings for my apps. I'm wondering what options are there with ..NET? Some settings I want to include...
5
by: Ivan Weiss | last post by:
Hey all, I am trying to add a configuration file to my app so that I can store configuration options and provide a form to allow the user to change them. I know that these used to always be in...
1
by: Chris Dunaway | last post by:
I have a legacy application that I need to build a Windows Forms application to interface with it. The legacy application keeps its configuration information in INI style files. I wish to use a...
7
by: Maileen | last post by:
Hi, I would like to use a configuration file for my application. usually i use an *.ini file for that which is from my point of view easier for multi distribution site. this configuration file...
1
by: Alan T | last post by:
I want to store some values so that the application can read from a file, eg. ini file, configuration file. If I add a Application Configuration File, to store the name of files: key = "sales"...
9
by: KarlM | last post by:
After reading some articles regarding confuguration data I'm a bit confused. Where is the right place for storing configuration data? - XML-files? - registry? - INI-files? (from a users point...
1
by: angelhouse | last post by:
Hi Anyone, I am looking for help with Configuring phpThumb and ImageMagick I am new to PHP and all this technical stuff, but i'll give it a go: I have created my own website and am hosting it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.