RE: config parser

2005-10-16 Thread Charles K. Clarkson
Beast wrote: : To avoid hardcoding parameter in program, Im trying to make a separate : file for config. : However its not as simple as key/value which can be easily parse using : split. : : It is something like group of parameter, ie: : : group = marketing : recipient

Re: config parser

2005-10-16 Thread John W. Krahn
Beast wrote: > > To avoid hardcoding parameter in program, Im trying to make a separate > file for config. > However its not as simple as key/value which can be easily parse using > split. > > It is something like group of parameter, ie: > > group = marketing > recipient = [EMAIL PROTECTED] > re

Re: config parser

2005-10-16 Thread Chris Devers
On Mon, 17 Oct 2005, Beast wrote: To avoid hardcoding parameter in program, Im trying to make a separate file for config. However its not as simple as key/value which can be easily parse using split. Why not ? A crude split might fail, but splitting on / = / should work for the format you de