On Mon, Jun 9, 2008 at 9:04 AM, dave selby <[EMAIL PROTECTED]> wrote:
> writing smaller file...
>
> and I end up with the remnants of the old larger file at the end.
> any idea how to clip the file to the newer smaller size without
> closing it and reopening it as a 'w' ?

f.truncate() ?

Why not re-open the file?

Kent
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to