how can i see that a file is open or closed