Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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));
}
}