reading a line in file

Brian McCann Brian.McCann at
Mon Aug 20 19:10:23 CEST 2007

does anyone have a good example of how to read a line in a file?

say you have a file build.log and in the file are values like

buildnum = 1
date = 20070820

I know how to read the contents and write them to a file, but how would one
grab just the date or build number in order to create a directory named 20070820_build1


<mailto:brian.mccann at> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list