directory Property

Class: IO

Description

This property defines the full path of the directory where the file is to be stored or accessed. If you do not specify a directory, the default is the spool directory.

Syntax

set objectName.directory = directory_path

Returns

A number containing the directory 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 = ”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.