Use the get command to import a file into the current document at the current cursor position.
get { prompt [ "fileName" ] | [ encoding charEncoding ] "fileName" }
prompt [ "fileName" ] | Use the prompt parameter to indicate that the get file dialog should be displayed to allow the user to select a file. If the optional fileName parameter is specified, the get file dialog is initialized with the specified file name. |
encoding charEncoding | Use the optional encoding parameter to specify that the character encoding of the file being imported is charEncoding. If you specify an empty string (""), the editor tries to detect the file encoding by itself, and defaults to the native encoding if unsuccessful. If not specified, the imported file is assumed to be in the native (platform default) character encoding. |
"fileName" | Use the fileName parameter to indicate the file that should be imported. |
The status parameter will be set to one of the following:
null The get command successfully located and loaded the specified file. file.notFound The get command could not locate the specified file. file.errorReading The get command encountered an error while reading the file.
get prompt get "test.java" get encoding Cp850 "test.java"
Editor commands, actions, and parameters
Copyright IBM Corporation 1992, 2004. All Rights Reserved.