Thank Ed.  But it IS a file object so I can pass it to:

      cp = ConfigParser.ConfigParser()
      cp.readfp(f)

Right?  It appears to work fine.

Jeff

Jeff Johnson
[EMAIL PROTECTED]
SanDC, Inc.
623-582-0323
Fax 623-869-0675

Ed Leafe wrote:
> On Jan 15, 2008, at 2:59 PM, Jeff Johnson wrote:
> 
>>      f = open(inifile, 'w')
>>      cp.write(f)
>>
>>      f.close()
>>
>> Is it true that you can read a file opened for write?
>>
>> If so, cool.
> 
>       Opening a file for write essentially erases it. For example, the  
> easiest way to create a zero-byte file is:
> 
> file("zilch.nada", "w")
> 
> 
> -- Ed Leafe
> -- http://leafe.com
> -- http://dabodev.com
> 
> 
> 
> 
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to