Use the load command to load or reload the file indicated by the current setting of the name parameter.
load [ encoding charEncoding ]
encoding charEncoding | Use the optional encoding parameter to specify that the (new) character encoding of the file to be used 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 current encoding of the document's underlying file, if known, is used, otherwise the native (platform default) character encoding is used. |
The status parameter will be set to one of the following:
null The load command successfully loaded the file. file.errorReading The load command encountered an error while reading the file. file.incorrectEncoding The load command could not load the file due to an incorrect encoding. file.notFound The load command could not locate the file.
The load command clears the undo stack, resets the changes count, and issues updateProfile for all of the views of the current document.
Note: The implementation of the load operation in an editor application may differ from the behavior of the base editor as described in here.
load load encoding UTF8
Editor commands, actions, and parameters
undo command
updateProfile command
changes parameter
dirty parameter
name parameter
status parameter
reload action
Copyright IBM Corporation 1992, 2004. All Rights Reserved.