Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

Returns file content as string.

string myFiles.GetString(id: 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.

Example

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