Command "CreateFile"

Summary

Creates a file which can be used to write any text. No file is written to disk yet, the Command creates a StringBuffer and holds the reference for further use. The command belongs to the group "File".


Parameters

Parameter Name Description Type
NewFileRef The name of the reference under which the file will be acessible. saveFile

Valid parameter combinations



Description

Creates an new ordinary file. Use the commands PrintToFile to write to 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.
<CreateFile NewFileRef="myFile"/>
<PrintToFile FileRef="myFile" Value="Hello World!"/>
<SaveFile FileName="/out/output.txt" FileRef="myFile"/>