home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / pascal / 4908 < prev    next >
Encoding:
Text File  |  1992-08-19  |  970 b   |  22 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!sdd.hp.com!usc!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!doug.cae.wisc.edu!castlab.engr.wisc.edu!chris
  3. From: chris@castlab.engr.wisc.edu (Christian Rohrmeier)
  4. Subject: RO/WO Files
  5. Organization: U of Wisconsin-Madison College of Engineering
  6. Date: 19 Aug 92 15:34:27 CDT
  7. Message-ID: <1992Aug19.153428.13654@doug.cae.wisc.edu>
  8. Lines: 12
  9.  
  10. Simple question here:
  11.  
  12. When appending to a text file the file is Write Only and file position is
  13. set to the end, and if you use Reset the file is Read Only and the file
  14. position is et to the beginning. So, how does one read the file, determine
  15. one is at the right spot, and then write something to that spot??
  16.  
  17. Since I'm using a text file I can't use any of the seek functions, so I
  18. got and read the file character by character and then look at where I
  19. am, which i can't do when i want rite to the file since it become read-only!
  20.  
  21. -Christian
  22.