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
_______________________________________________
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]