format
typescript
FileStream.ReadAllString()class: FileStream
description
Reads and returns all characters from a file stream.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
string | The characters from the file stream. |
code example
javascript
function Test(path: string) {
try {
let fileRead = new FileStream(path, FileMode.Open, FileAccess.Read);
let strr: string;
strr = fileRead.ReadAllString();
fileRead.Close();
} catch (error) {
Debug.Error(error);
}
}