PC Review


Reply
Thread Tools Rate Thread

Create a configuration file (XML or INI)

 
 
=?Utf-8?B?TWFpbGVlbg==?=
Guest
Posts: n/a
 
      24th Oct 2004
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.
 
Reply With Quote
 
 
 
 
Rob Teixeira
Guest
Posts: n/a
 
      24th Oct 2004
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.AppSettings 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:A4D197F0-6C7E-418E-A07F-(E-Mail Removed)...
> 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.



 
Reply With Quote
 
scorpion53061
Guest
Posts: n/a
 
      25th Oct 2004
See

http://www.kjmsolutions.com/xmlsettings.htm


"Maileen" <P.M.@discussions.microsoft.com> wrote in message
news:A4D197F0-6C7E-418E-A07F-(E-Mail Removed):
> 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.


 
Reply With Quote
 
=?Utf-8?B?TWFpbGVlbg==?=
Guest
Posts: n/a
 
      25th Oct 2004
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:A4D197F0-6C7E-418E-A07F-(E-Mail Removed):
> > 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.

>
>

 
Reply With Quote
 
Michael Turner
Guest
Posts: n/a
 
      25th Oct 2004
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:A4D197F0-6C7E-418E-A07F-(E-Mail Removed)...
> 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.
>




 
Reply With Quote
 
scorpion53061
Guest
Posts: n/a
 
      25th Oct 2004
Care to explain what is lacking?

It is actually quite simple.

"Maileen" <(E-Mail Removed)> wrote in message
news:7A5A8F2D-26ED-4FFE-BB28-(E-Mail Removed):
> 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:A4D197F0-6C7E-418E-A07F-(E-Mail Removed):
> > > 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.

> >
> >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
create main configuration file for solution. Mr. X. Microsoft VB .NET 4 3rd Apr 2010 05:12 AM
Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicK Mike Microsoft ASP .NET 5 15th Aug 2007 09:57 AM
Create a XML configuration file with a real time watching aure_bobo@yahoo.fr Microsoft C# .NET 0 29th Sep 2005 04:48 PM
Configuration Application Block: Multiple configuration sections in one file: probashi Microsoft C# .NET 1 21st Mar 2005 10:50 AM
Windows service configuration - registry or configuration file? Ken Brady Microsoft Dot NET Framework 1 18th Feb 2005 03:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:38 AM.