overwrite bytes in file

Alexandre Fayolle alf at logilab.fr
Wed Mar 27 07:42:14 EST 2002


In article <3ca1c344.16256546 at news.easynews.net>, Marcus Stojek wrote:
> Hi,
> how can I overwrite certain bytes in a file (Win NT) and
> keep the rest unchanged.
> All open options are truncating the file.

Opening the file in 'r+' mode should do the trick.

Alexandre Fayolle
-- 
LOGILAB, Paris (France).
http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org
Narval, the first software agent available as free software (GPL).



More information about the Python-list mailing list