system.file.writeFile(filepath, charData, [append], [encoding])
String filepath - The path of the file to write to.
String charData - The character content to write to the file.
Boolean append - If true, the file will be appended to if it already exists. If false, the file will be overwritten if it exists. The default is false. [optional]
String encoding - The character encoding of the file to write. Will throw an exception if the string does not represent a supported encoding. Common encodings are "UTF-8", "ISO-8859-1" and "US-ASCII". [optional]
Gateway, Vision Client, Perspective Session