timeout Property

Class: IO

Description

This property defines the number of seconds to wait for access to the device before returning an error. The default is “” (empty string). Setting this property to the empty string causes the operation to wait indefinitely (effectively disabling the timeout).

 

Note that the value of this property only applies to IO.open.

Syntax

objectName.timeout=timeout

Parameters

None

Returns

A number containing the timeout that will be applied in the next call to IO.open.

When Became Available

v6.4

Example

type IO io = Class.new(“IO”)

set io.directory = ”/unix_directory/spool”

set io.fileName = ”TEST.txt”

set io.openParams = ”io.timeout = 5NEWV/WRITE”

set

 

do io.open()

type String TEXT

set TEXT = ”This is a file created using IO class methods.”

do io.write(TEXT)

do io.close()

 

* The value of the directory property must be a valid directory path.