How to know if a file is finished writing or not ?

From: Wei Xie (xiewei@ceropa.weizmann.ac.il)
Date: Sat Jul 04 1998 - 22:19:00 MEST


Dear Rooters'

Assume I have a data file which is written on a disk, and deleted
automatically after 5 minutes, and then written on the disk again. 
This loop will continues as long as necessary.

If I want to read the file in ROOT every now and then, 
the old file may have  already been deleted and new file is still being
written and not finished yet.  So if I read it at this moment, some 
errors will occur. Is there any method in ROOT that can distinguish if 
a file is finished written or not ?

Sincerely 

Xie



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:34 MET