home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / pascal / 4965 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  1.4 KB

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