使用 load 命令来装入(或重新装入)由 name 参数的当前设置指示的文件。
load [ encoding charEncoding ]
encoding charEncoding | 使用可选的 encoding 参数来指定将要使用的文件的(新)字符编码是 charEncoding。如果指定空字符串(""),则编辑器尝试自行检测文件编码,如果不成功的话,则缺省为本机编码。如果未指定此参数,并且文档的底层文件的当前编码是已知的,则使用该编码,否则,如果该编码是未知的,则使用本机(平台缺省)字符编码。 |
将把 status 参数设置为下列其中一项:
null 指示 load 命令已成功装入文件。 file.incorrectEncoding 指示因为编码不正确,load 命令未能装入文件。 file.notFound 指示 load 命令未能找到文件。 file.errorReading 指示 load 命令在读文件时遇到错误。
load 命令清除撤销堆栈、重置 changes 计数并对当前文档的所有视图发出 updateProfile。
load load encoding UTF8
undo 命令
updateProfile 命令
changes 参数
dirty 参数
name 参数
reload 操作
Copyright IBM Corporation 1992, 2004. All Rights Reserved.