Checks to see if file is open