Checking the compatibility mode of a file