Returns true on success. If append = true
the data is appended to the file, otherwise the file is overwritten with the new content.
impure function writeFile input String fileName; input String data; input Boolean append = false; output Boolean success; end writeFile;