Gopal wrote: >Hello, > >I'm Gopal. I'm looking for a solution to the following problem: > >I need to create a text file config.txt having some parameters. I'm >thinking of going with this format by having "Param Name - value". Note >that the value is a string/number; something like this: > >PROJECT_ID = "E4208506" >SW_VERSION = "18d" >HW_VERSION = "2" > >In my script, I need to parse this config file and extract the Values >of the parameters. > >I'm very new to python as you can understand from the problem. However, >I've some project dealines. So I need your help in arriving at a simple >and ready-made solution. > >Regards, >Gopal. > > > Would this (http://www.python.org/doc/current/lib/module-ConfigParser.html) do what you need? It's part of the standard library.
- JMJ -- http://mail.python.org/mailman/listinfo/python-list