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

  1. Path: sparky!uunet!paladin.american.edu!darwin.sura.net!wupost!waikato.ac.nz!canterbury.ac.nz!cantva!clas005
  2. Newsgroups: comp.sys.mac.hypercard
  3. Subject: Re: Open and close files in HC 2.0
  4. Message-ID: <1992Nov20.145522.1@csc.canterbury.ac.nz>
  5. From: clas005@csc.canterbury.ac.nz
  6. Date: Fri, 20 Nov 1992 01:55:22 GMT
  7. References: <1992Nov19.142547.27732@motor.physiolmotor.physiol>
  8. Organization: University of Canterbury, Christchurch, New Zealand
  9. Nntp-Posting-Host: cantva.canterbury.ac.nz
  10. Lines: 24
  11.  
  12. In article <1992Nov19.142547.27732@motor.physiolmotor.physiol>, 
  13. ph@physiology.oxford.ac.uk (Patrick Haggard) writes:
  14. > Hi.  I'm writing a stack in which I open a file in one card, and then
  15. > write some ASCII strings to it from some subsequent cards, then close
  16. > it.  Trouble is, HC 2.0 seems to close the file every time it gets a
  17. > closeCard message, so my subsequent attempts to write to it say it
  18. > isn't open.  I don't remember this in HC1.2.  Is this some
  19. > undocumented feature?  To get round it, I must either prevent the
  20. > closeCard message from closing the file, or else close the file each
  21. > time, and then reopen it.  The latter option would be fine if I could
  22. > open it with status append, or fseek the end of file after opening it.
  23. > Any ideas about how to implement either solution would be *most*
  24. > welcome.
  25.  
  26. First, you do not need to close the card to you are on in order 
  27. to fetch data from other cards; you can be on card 1 and say 
  28. "write bg fld 1 of cd 2 to file MyFileName".
  29.  
  30. Second, in HC 2.1 (not 2.0), you can append; you say, "write 
  31. ThisStuff to file MyFileName at EOF".
  32.  
  33. Third, I dunno why your file is being closed, sorry. Good luck! 
  34. -- matt
  35.