Free2Code
 
Time: 2008-11-20, 11:11pm
Python: Read value from string
Subject: Python: Read value from string  ·  Posted: 2006-02-27, 11:46pm
Rank: ? (2)
Member #: 26802
Sorry for been a newbie.

I am working with a configuration file "blabla.ini" that contains a specific line "abcde = 10" how do I read the value (10) from that line, the value for the line (abcde) and the position of the line in the file changes from time. I can find the string "abcde =" but cannot read the value "10" from it, don't know how to do it.

Thanks for any help


 
  Reply to this ·  Post link ·  Top
Subject: Re: Python: Read value from string  ·  Posted: 2006-03-08, 08:02am
Rank: ? (2)
Member #: 26802
Ok just to let every body know, the easiest solution for this is ConfigObj

 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

icons