OPEN-O

Description

Open a file into which data are written (output file).

The file is available across all nested procedure files. You can, for example, issue the WRITE command from more than one procedure file.

If you write to an exisiting file, the new data are appended to this file.

Syntax

OPEN-O filenumber path

filenumber is a number between 1 and 4.

path is as follows:

{[[drive:]\directory\...\]filename[.extension]}

Examples

  • Open Test.ncp as output file 1:

    OPEN-O 1 Test.ncp
  • Open the file defined by the variable #FILESPEC as output file 2:

    OPEN-O 2 #FILESPEC

Procedure File Example

Copyscr.ncp

Variables Returned

#RC (SUCCESS if OPEN-O was successful. APPEND if the file already exists. FAILURE if OPEN-O was not successful.)

Related Commands

WRITE, CLOSE

Usage

Procedure File: Yes
Command Line: No
Key: No
API: No