TextIo.status Method

Retrieves the status of the last operation performed on a TextIo object.

public IO_Status status()


The status of the last operation.

The following example throws an error if a file does not exist or if the last operation on the file did not have a status of IO_Status::Ok.

protected void checkDiskFileStatus()
    if (!diskFile || diskFile.status() != IO_Status::Ok)
        throw error(strfmt("@SYS76826", diskFileName));

Community Additions