reading a line in file

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


 
Hi,
 
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

Thanks,
Brian

 
<mailto:brian.mccann at viziant.net> 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070820/825ce78e/attachment.html>


More information about the Python-list mailing list