delorie.com/archives/browse.cgi | search |
From: | stryyker AT my-deja DOT com |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Partial file overwrite |
Date: | Tue, 07 Nov 2000 21:51:46 GMT |
Organization: | Deja.com - Before you buy. |
Lines: | 18 |
Message-ID: | <8u9thf$6j9$1@nnrp1.deja.com> |
References: | <Pine DOT SUN DOT 3 DOT 91 DOT 1001107132456 DOT 24223K-100000 AT is> |
NNTP-Posting-Host: | 203.173.253.150 |
X-Article-Creation-Date: | Tue Nov 07 21:51:46 2000 GMT |
X-Http-User-Agent: | Mozilla/4.0 (compatible; MSIE 5.5; Windows 98) |
X-Http-Proxy: | 1.0 CPROXY:8080, 1.0 x54.deja.com:80 (Squid/1.1.22) for client 203.173.253.150 |
X-MyDeja-Info: | XMYDJUIDstryyker |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
In article <Pine DOT SUN DOT 3 DOT 91 DOT 1001107132456 DOT 24223K-100000 AT is>, djgpp AT delorie DOT com wrote: > > 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? > And how do I open the file in read/write mode? (I am new to c++) Sent via Deja.com http://www.deja.com/ Before you buy.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |