473,372 Members | 1,230 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,372 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 9164
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.