Command "PrintToFile"

Summary

Let's you write text in the file you have created with the CreateFile Command The command belongs to the group "Document".


Parameters

Parameter Name Description Type
Crlf Indicates whether to add a crlf - possible values are 'true' or 'false', the default is 'true'. valueexpression
FileRef The name of the reference to the file to write the text in. readFile
Value The text to write. valueexpression

Valid parameter combinations



Description

Prints the result of a valueexpression to a file. Use the commands CreateFile to create the file and SaveFile to save the file to disk.

Examples


Example 1

The example below creates the file "myFile", prints "Hello World!" to it and writes it to disk. Set Crlf to "true" if you want to add "CRLF" at the end of the line.
<CreateFile NewFileRef="myFile"/>
<PrintToFile FileRef="myFile" Value="Hello World!">
<SaveFile FileName="/out/output.txt" FileRef="myFile"/>