home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / hypercar / 4239 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.5 KB

  1. Path: sparky!uunet!pipex!warwick!uknet!comlab.ox.ac.uk!ph
  2. From: ph@physiology.oxford.ac.uk (Patrick Haggard)
  3. Newsgroups: comp.sys.mac.hypercard
  4. Subject: Open and close files in HC 2.0
  5. Message-ID: <1992Nov19.142547.27732@motor.physiolmotor.physiol>
  6. Date: 19 Nov 92 14:25:47 GMT
  7. Sender: ph@motor.physiol (Patrick Haggard)
  8. Organization: Physiology Department, Oxford University, Oxford, UK.
  9. Lines: 20
  10. Originator: ph@motor.physiol
  11.  
  12.  
  13. Hi.  I'm writing a stack in which I open a file in one card, and then
  14. write some ASCII strings to it from some subsequent cards, then close
  15. it.  Trouble is, HC 2.0 seems to close the file every time it gets a
  16. closeCard message, so my subsequent attempts to write to it say it
  17. isn't open.  I don't remember this in HC1.2.  Is this some
  18. undocumented feature?  To get round it, I must either prevent the
  19. closeCard message from closing the file, or else close the file each
  20. time, and then reopen it.  The latter option would be fine if I could
  21. open it with status append, or fseek the end of file after opening it.
  22. Any ideas about how to implement either solution would be *most*
  23. welcome.
  24.  
  25. --------------------------------------------------------------------------
  26. Patrick Haggard                         Email (WORLD): ph@physiol.ox.ac.uk
  27. University Laboratory of Physiology     Email (JANET): ph@uk.ac.ox.physiol
  28. Parks Road,                             Tel. (0865) 272116
  29. Oxford, OX1 3PT                         Fax. (0865) 272469
  30. England
  31. --------------------------------------------------------------------------
  32.