LiveWire also allows you to check on the error status of a file


LiveWire also allows you to check on the error status of a file or clear the error status.
Since error status codes are platform dependent, you must check your operating system documentation for the actual codes. The syntax for these methods is

fileObj.error()
fileObj.clearError()