Overview | Statement List


检索文件

Synopsis

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

Description

This statement retrieves a copy of either a part file or a text file.

Parameters

Parameter

Description

PART

Minor word that indicates that the file to be retrieved is a part file.

TXT

Minor word which indicates that the file to be retrieved is a text file. The file pointer is left on the last line of the file after it is retrieved. This can be an important consideration if you should try to read that file.

file#

The number of the scratch file into which the specified file is to be retrieved. Ten scratch file areas are available, therefore, the specified number must be between 1 and 10. The scratch file number is required for text files only.

The file number cannot be used if the file is a part file.

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 filespec parameter is used to specify the name of the part or text file. The filespec is required for part or text files only.

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.