Re: Best format for configuration file?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Joe Mayo [C# MVP] (jmayo_at_nospamAtCSharpDashStation.com)
Date: 02/06/04


Date: Fri, 6 Feb 2004 06:47:52 -0700


"Jimbo" <None> wrote in message
news:OhO0%23YL7DHA.1852@TK2MSFTNGP10.phx.gbl...
> What's the best format to save a configuration file?
> I'm currently using an INI extension and I write it like a normal ascii
> file. Is this the best way? I've heard of using XML to create a config
file.
> What would be the best format?

Hi Jimbo,

I recommend XML. Look for configuration file information in the docs. In
VS.NET, you can add a file named "app.config" to your application and work
with it in the IDE. When you compile, this file will be copied to your
output directory, where your dll is, and be renamed to <put your application
name here>.exe.config.

Joe

-- 
http://www.csharp-station.com


Relevant Pages

  • reading configuration files
    ... format for my configuration file, with respect to readability, ... text-files do not know much about Fortran programming. ... assumptions on the input format of the numerical values (say I have ...
    (comp.lang.fortran)
  • Re: reading configuration files
    ... format for my configuration file, with respect to readability, ... text-files do not know much about Fortran programming. ... assumptions on the input format of the numerical values (say I have ... STRING = "a string like this" ...
    (comp.lang.fortran)
  • Re: reading configuration files
    ... format for my configuration file, with respect to readability, ... text-files do not know much about Fortran programming. ... assumptions on the input format of the numerical values (say I have ... The values are read using list directed input, and the text description is simply ignored. ...
    (comp.lang.fortran)
  • Re: reading configuration files
    ... format for my configuration file, with respect to readability, ... text-files do not know much about Fortran programming. ... assumptions on the input format of the numerical values (say I have ...
    (comp.lang.fortran)