Page tree
Skip to end of metadata
Go to start of metadata

Overview

String Files.GetString ( id )

Returns file content as string.

Arguments

String id

Id of file

Remarks

This function is used to retrieve text file contents, if file is binary you should consider to use Files.GetBase64 otherwise file content would be corrupted.

Examples

Usage
files.forEach(function(file) {    
    var fileContent = $Files.GetString(file.Id);    
    // do sth with the file content
});

See Also