do you mean see if you opened a file in your program or a file opened by another application?