Reads or writes content of the specified file.

Syntax

<file action="file_action"
      path="file_path"
      type="file_type"
      charset="charset_of_text_file">
    body defining content of the file if action="write" or action="append"
</file>

Attributes

Name Required Default Description
action no read Defines file action. Valid values are read, append and write.
path yes File path, relative to the working directory.
type no text Type of file: text or binary.
charset no [Default charset for config] Charset for text files. Has no effect if type is binary.

Example

<file action="write" path="123.txt">
    <file action="read" path="1.txt"/>
    -----------------------------------
    <file action="read" path="2.txt"/>
    -----------------------------------
    <file action="read" path="3.txt"/>
</file>

Here, new file is created containing appended contents of three existing files, separeted with lines.