使用 load 命令来装入(或重新装入)由 name 参数的当前设置指示的文件。
load [ encoding charEncoding ]
encoding charEncoding | 使用可选参数 encoding 来指定将使用的文件(新)字符编码为 charEncoding。如果您指定了空字符串(""),则编辑器会尝试自已检测文件编码,如果检测不成功则缺省使用本机编码。如果未指定,并且知道文档的底层文件的当前编码,则使用该编码,否则将使用本机(平台缺省)字符编码。 |
status 参数将被设置为下列其中一项:
null load 命令成功地装入了文件。 file.errorReading load 在读取文件时遇到错误。 file.incorrectEncoding 由于错误的编码,load 命令无法装入文件。 file.notFound load 命令找不到文件。
load 命令将清除撤销堆栈、复位 changes 计数并对当前文档的所有视图发出 updateProfile。
注意:编辑器应用程序中的装入操作的实现可能与这里描述的基本编辑器的行为不同。
load load encoding UTF8
undo 命令
updateProfile 命令
changes 参数
dirty 参数
name 参数
status 参数
reload 操作
Copyright IBM Corporation 1992, 2006. All Rights Reserved.