Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Overview

Returns file content as string.

string myFiles.GetString(id: string, encoding: string)

Arguments

string id
Id of file
string encoding
Encoding of file. Optional. Default is 65001 (UTF-8)

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.

Example

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