getFileContent

Returns the contents of a stored file in a UTF-8 encoded array.

Syntax

function getFileContent(fileName: string): number[]
 
Parameter Description
fileName Unique internal ID of the file (real name).

Return Value

Returns an array that contains the each character in the file encoded using the UTF-8 standard.

For example, a file containing the following text:

abcÖ

will be converted to the following array:

[97, 98, 99, 195, 150]

Examples