FileResource class
類別,表示檔案做為資源。
- Extends
建構函式
| File |
初始化 |
方法
| read |
讀取檔案資源的文字內容。 |
建構函式詳細資料
FileResource(string)
初始化 FileResouce 類別的新實例。
new FileResource(path: string)
參數
- path
-
string
檔案的路徑。
屬性詳細資料
fullName
磁碟上資源的完整路徑
string fullName
屬性值
string
資源的完整路徑。
id
資源標識碼。
string id
屬性值
string
資源標識碼。
方法詳細資料
readText()
讀取檔案資源的文字內容。
function readText(): string
傳回
string
讀取內容文字。