home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!tamsun.tamu.edu!bcm!rice!nb.rockwell.com!clepsydra!cking
- From: cking@clepsydra.muse.rockwell.com (Christopher King)
- Newsgroups: comp.lang.pascal
- Subject: Re: RO/WO Files
- Message-ID: <1992Aug19.222711.15532@nb.rockwell.com>
- Date: 19 Aug 1992 22:27:11 GMT
- References: <1992Aug19.153428.13654@doug.cae.wisc.edu>
- Sender: news@nb.rockwell.com
- Reply-To: cking@clepsydra.muse.rockwell.com (Christopher King)
- Organization: Rockwell International
- Lines: 23
-
- In article <1992Aug19.153428.13654@doug.cae.wisc.edu>,
- chris@castlab.engr.wisc.edu (Christian Rohrmeier) writes:
- |>Simple question here:
- |>
- |>When appending to a text file the file is Write Only and file position is
- |>set to the end, and if you use Reset the file is Read Only and the file
- |>position is et to the beginning. So, how does one read the file, determine
- |>one is at the right spot, and then write something to that spot??
- |>
-
- One possible solution would be to reopen the text file as a 'file of
- char'; then reset the file and you could scan through it char by char.
- You could then overwrite sections by writing out strings a character at a time.
-
- Chris.
-
- --
- Chris King | Internet: cking@zeus.muse.rockwell.com
- Rockwell International | FidoNet : 1:103/315; CI$: 74017,1665
- 2800 Westminster Blvd. | Fax : 310-797-1469
- Seal Beach, CA USA 90740-2089 | Voice : 310-797-4969
-
-
-