I've tried a variety of B.S. ways that I concocted to try and check if a file is opened after I try to open it. A couple of them work, but it's really sloppy code and probably uneccessary. Is there a standard way to check?
I'm opening my file like this: