get command

The get command can be used to import a file into the current document at the current cursor position.

Syntax

get { prompt [ "fileName" ] 
    | "fileName" 
    } 

Parameters

prompt [ "fileName" ] Use the parameter prompt to indicate that the get file dialog should be displayed to allow the user to select a file.  If the optional parameter fileName is specified, the get file dialog will be initialized with the specified file name.
"fileName" Use the parameter fileName to indicate the file that should be used.

Status

The status parameter will be set to one of the following:

null Indicates that the get command successfully located and loaded the specified file.
file.notFound Indicates that the get command could not locate the specified file.
findText.errorReading Indicates that the get command encountered an error while reading the file.

Examples

get "test.java" 
get prompt 


Editor commands and parameters


get action
Default editor commands