Overview | Statement List


File文件

Synopsis

FILE/{PART|TXT[,file#][,'filespec']}[,LINNO][,IFERR,label:]

Description

This statement saves a copy a part file or a text file without terminating the part or scratch file.

Parameters

Parameter

Description

PART

Minor word that indicates that the file to be saved is the current work part file.

TXT

Minor word that indicates that the file to be saved is the text file which is currently in the specified scratch file.

The line pointer will reset to the top of the file after it has been saved.

file#

The number of the scratch file which is to be saved. This parameter may be used only if the file is a text file. Ten scratch file areas are available, therefore, the specified number must be between 1 and 10.

NOTE: GRIP NC CLS files also access scratch file 1. If accessing scratch file 1, you should first check to make sure no other file is there, or that file will be lost. See the example in File Management Statements table.

'filespec'

The optional filespec parameter. If a filespec is not specified the file will be saved with the name with which it was created or fetched. If you specify an existing file, then a "File already exists" message occurs.

NOTE: If a system error log or system log was fetched, the scratch file has no name and, therefore, one must be specified in the FILE statement.

LINNO

Minor word which indicates that the text file should be filed with the editor's line numbers.

IFERR,label:

Specifies a label to which the program jumps if an error occurs.

 


Copyright ©2015 胡君NX二次开发官网(www.UGapi.com) QQ:85585969 All Rights Reserved.