Share via


TextIo.status Method

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

Syntax

public IO_Status status()

Run On

Called

Return Value

Type: IO_Status Enumeration
The status of the last operation.

Examples

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 the IO_Status::Ok enumeration value.

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

See Also

TextIo Class

IO_Status Enumeration