Parsing a conf file

Simon Faulkner news at titanic.co.uk
Wed Mar 5 15:19:18 EST 2003


Hello All,

Is there a simple / recommended way of parsing a setting from a conf
file?

For eample, I have a file /etc/program.conf which might have a setting
like

>>
#My conf file


server = Stafford
<<

How do I parse out the name Stafford for the key server??

Simon





More information about the Python-list mailing list