saveTextFile
Syntax
saveTextFile(content, filename, [append=false], [lastModified])
Arguments
content is the contents to be written into the file.
filename is a string indicating the absolute path and name of the output file
append is a Boolean flag. True means appending while false means overwriting.
lastModified is the previously modified time displayed in epoch time format.
Details
Save strings to a file by appending or overwriting. It must be executed by a logged-in user.
Examples
$ saveTextFile("1234567890\n0987654321\nabcdefghijk\n", "D:/test/abc.txt", false, 1495762562671l);
[content of file "d:/test/abc.txt"]
1234567890
0987654321
abcdefghijk