How can I tell if a file is already open.