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.

charsetstringNoSpecifies 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

  1. You can use absolute paths and relative paths to "sil.home".
  2.  If the file is not found, an error will be raised.

See also