Zoomed Image

AMSX Scripting Language - Command : SaveTextFileFromVariable

Summary

Save the contents of a variable to a text file on the server

Description

Writes the value of a named AMSX variable to the specified file path. Use this when you want to save a variable directly rather than the current result buffer. The file path must be within the permitted folders for this transform.

Parameters

ParameterDescription
cmdFile path (must be within permitted folders)
Argument 0Variable name whose value is written to the file

Syntax


SaveTextFileFromVariable "File path (must be within permitted folders)", "Variable name whose value is written to the file"

Return to the AMSX Command Reference