10.2 FIO Object

Features:

10.2.1 Open method

Opens a file.

Syntax

 object.Open(
    Filename As String, 
    Mode As String)
 

Parameters

Filename
The name of the file to open. Standard devices STDIN, STDOUT, and STDERR can be mentioned as Filename.
Mode
The I/O mode. See Mode Constants.

Return Values

File. Returns the File objects if successful; otherwise, NULL.

Remarks

If the Web-based script is not authenticated to eDirectory with appropriate rights, an error is returned.

Example

This example opens the file text.txt in writing mode (FIO_CREATE_WRITE).

 Set fio = CreateObject("ucx:fio") 
 Set fopen = fio.open("sys:temp\text.txt", FIO_CREATE_WRITE) 
 fopen.Close()