Next Topic

Previous Topic

Book Contents

writeTextToFile()

Writes text to a file on the agent machine, either by appending text to an existing file or by creating a new file if none exists. You enter the text to write to the file, then enter the full path and file name on the agent machine the text will be written to. You can optionally overwrite the entire file with the text you have entered if the file already exists.

Operating systems supported: Windows, OS X, Linux

Example

writeTextToFile("#appsettings#", "c:\temp\appsettings.txt", false, "All Operating Systems", Halt on Fail")