Writes the input data into a new file or appends the data to an existing file.
fileName: Full path of the file to write.
data: A string or a blob to write to the file. If a string is received, it will be UTF-8 encoded.
true, the new data will be written to the end of the file.
trueif the string was successfully written and