format
typescript
File.ReadAllText(path)class: File
description
Reads and returns all characters in the file at the specified path.
parameter
| param_name | type | description |
|---|---|---|
| path | string | The path of the specified file. |
return
| type | description |
|---|---|
string | The text content. |
code example
javascript
function Test(file_path: string) {
try {
let content = File.ReadAllText(file_path);
Debug.log(content);
} catch (error) {
Debug.Error(error);
}
}