Function “writeFileUTF8”

function writeFileUTF8(path, contents)

Writes a UTF-8 encoded file

This function writes the given UTF-8 encoded string into the given file.

Parameters

NameTypeDescription
pathstringPath or URL of the file to write
contentsstringText to write into the file