readFromTextFile
Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !
Availability
This routine is available starting with SIL Engine™ 2.5.13 / 2.6.5.
Syntax
readFromTextFile(path[, charset])
Description
Read the text of the file.Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
path | string | Yes | Specifies the file name to read from. |
charset | string | No | Specifies the charset used to read that file. Available starting with SIL Engine™ 4.0.0. |
Return type
string
The text of the file
Example
string fileContent = readFromTextFile("C:/story.txt");
Notes
- You can use absolute paths and relative paths to "sil.home".
- If the file is not found, an error will be raised.
See also