delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/07/06:28:02

Date: Tue, 7 Nov 2000 13:25:54 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: Partial file overwrite
In-Reply-To: <8u89ok$r75$1@nnrp1.deja.com>
Message-ID: <Pine.SUN.3.91.1001107132456.24223K-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 7 Nov 2000 stryyker AT my-deja DOT com wrote:

> how do I overwrite a part of a binary file without disturbing the rest?

Open the file in read/write mode, seek to the place where you want to 
change, write the new contents, then close the file.

Does that do what you want?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019