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