New Issue: I/O Module: Deprecate ''file.check'' in favor of isClosed/isOpen

20266, "benharsh", "I/O Module: Deprecate ''file.check'' in favor of isClosed/isOpen", "2022-07-20T01:59:32Z"

This issue concerns the method file.check:

proc file.check() throws

This method is mostly used internally at the beginning of methods to throw an error if the file is closed or in an invalid state. In practice, users are more likely to desire a boolean-returning method that indicates whether the file is open or closed.

We should deprecate this method in favor of a boolean-returning method once we decide on a name.