View Single Post
Old 07-09-2008   #2 (permalink)
RichS [MVP]


 
 

RE: Read config file

What is the configuration file for? is it an application you are writing.
Different applications have different config files so its difficult to
generalise. if you are writing the app I would suggest using XML
--
Richard Siddaway
All scripts are supplied "as is" and with no warranty
PowerShell MVP
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"sylan" wrote:
Quote:

> I'm working on a script that will read in configuration information and
> perform actions based on that.
>
> Is there a "best practice" for doing this? Essentially, I'd like to read in
> things like database name, input file locations, output file locations, etc.
> Should I use INI, XML, something else?
My System SpecsSystem Spec