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 = = = =================================================================
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:34 MET