The IO class provides methods and properties for data input and output. The methods and properties in the class are used in association with an IO type object; therefore, an IO object must first be instantiated:
type IO objectName = Class.new("IO")
Ancestor |
|
Descendants |
None |
Properties |
Description |
Element name to be passed to $$^UCIOENCD() | |
Element type to be passed to $$^UCIOENCD() | |
Contains the name of the character set used to convert characters on .read() or .write() | |
Contains the complete device specification (directory and fileName). This is a read-only property. | |
Defines the full path of the directory where the file is to be stored or accessed. | |
Defines the file name used to access the file. | |
Indicates the type of access granted to the device. | |
Defines the length of the record within the device to be accessed. | |
Defines the number of seconds to wait for access to the device before returning an error. |
Methods |
Description |
Closes a device based on the fileName and directory properties. | |
Opens a device based on the fileName and directory properties. | |
Reads a record from the device defined by the fileName and directory properties. | |
Writes a record to the device defined by the fileName and directory properties. |