使用 load 指令來載入(或重新載入)name 參數現行設定所指出的檔案。
load [ encoding charEncoding ]
encoding charEncoding | 使用選用參數 encoding 來指定檔案的(新)字元編碼為 charEncoding。如果您指定空字串 (""),編輯器會試圖自行偵測檔案編碼,如果未順利完成,預設值就是原生編碼。 如果沒有指定,則會使用文件的基礎檔案的現行編碼(如果知道的話),否則會使用原始(平台預設)的字元編碼。 |
status 參數可設定為下列其中一項:
null 指出 load 指令已順利載入檔案。 file.incorrectEncoding 指出 load 指令因為編碼不正確而無法載入檔案。 file.notFound 指出 load 指令找不到檔案。 file.errorReading 指出 load 指令在讀取檔案時發現錯誤。
load 指令會清除復原堆疊、重設變更計數,以及發出 updateProfile 給現行文件的所有視圖。
load load encoding UTF8
undo 指令
updateProfile 指令
changes 參數
dirty 參數
name 參數
reload 動作
Copyright IBM Corporation 1992, 2004. All Rights Reserved.