Class: IO
Description
This method closes a device based on the fileName and directory properties in the IO class. In addition, this method assigns the empty string to the device property.
Syntax
do objectName.close()
Parameters
None
Returns
None
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 = ”NEWV/WRITE”
set io.timeout = 5
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.