How to tell if a file is closed

Chris Jillings (chris@owl.phy.queensu.ca)
Mon, 6 Jul 1998 12:19:23 -0400 (EDT)


Hi,
There is a simple technique. Suppose you open a file called
hello.dat. Define your own file closing function, say, Closer(FILE*).
The Closer() function should close the file hello.dat and if it is
properly closed, create a new file called hello.dat.closed.
Your main program need only test for the existance of
hello.dat.closed.

Apologies for puuting this on the root page where this note doesn't really
belong,

Chris

=================================================================
= =
= Chris Jillings =
= Department of Physics phone/voice mail: (613) 545-6000x4805 =
= Queen's University fax: (613) 545-6813 =
= Kingston, Ontario email: chris@sno.phy.queensu.ca =
= Canada, K7L 3N6 web: http://sno.phy.queensu.ca =
= =
=================================================================