home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!sun-barr!cs.utexas.edu!asuvax!ennews!envmsa.eas.asu.edu!ptran
- From: ptran@envmsa.eas.asu.edu (Phi-Long Tran)
- Subject: Re: File Handling
- Message-ID: <9SEP199219250357@envmsa.eas.asu.edu>
- News-Software: VAX/VMS VNEWS 1.4-b1
- Sender: news@ennews.eas.asu.edu (USENET News System)
- Reply-To: ptran@asuvax.eas.asu.edu
- Organization: Arizona State University, Tempe, AZ
- References: <1992Sep9.173717.22248@nosc.mil>
- Date: Thu, 10 Sep 1992 02:25:00 GMT
- Lines: 17
-
- In article <1992Sep9.173717.22248@nosc.mil>, mitch@nosc.mil (Ray Mitchell)
- writes...
-
- > ... Assume the typical case where a binary file consists of several
- > records (structures). I wish to write a program in which the user
- > specifies which record is to be modified. My initial approach was to
- > simply fseek into the file the appropriate amount then overwrite the
- > record at that position.
-
- You can place a header record at the beginning of the file containing
- the number of records in the file. You would update the record accordingly
- when removing or adding records.
-
- ---
- Phi-Long Tran
- ptran@asuvax.eas.asu.edu
- Arizona State University
-