Command "SaveFile"

Summary

Saves a file you have created with the CreateFile Command to disk The command belongs to the group "File".


Parameters

Parameter Name Description Type
FileName The path and name of the file. valueexpression
FileRef The name of the reference to the file you want to save. readFile

Valid parameter combinations



Description

Saves the referenced file to disk. Use the commands CreateFile to create the file and PrintToFile to print to the file.

Examples


Example 1

The example below creates the file "myFile", prints "Hello World!" to it and writes it to disk.
<CreateFile NewFileRef="myFile"/>
<PrintToFile FileRef="myFile" Value="Hello World!"/>
<SaveFile FileName="/out/output.txt" FileRef="myFile"/>