<CFFILE ACTION="Write"
    FILE="full_path_name"
    OUTPUT="content"
    MODE="permission"
    ADDNEWLINE="Yes/No"
    ATTRIBUTES="file_attributes">

You can use the CFFILE tag to write a text file based on dynamic content. For example, you could create static HTML files from this content or log actions in a text file.

FILE

Required. The full path name of the file to be created.

OUTPUT

Required. The content of the file to be created.

MODE

Optional. Defines permissions for a file on Solaris or HP-UX. Ignored in Windows. Valid entries correspond to the octal values (not symbolic) of the Unix chmod command. Permissions are assigned for owner, group, and other, respectively. For example:

Assigns the owner read/write permissions and group/other read permission.

Assigns read/write permissions for owner, group, and other.

Assigns read, write, and execute permissions for all.

ADDNEWLINE

Optional. Yes or No. If this attribute is set to Yes, a new line character is appended to the text that is written to the file. If this attribute is set to No, no new line character is appended to the text. The default value is Yes.

ATTRIBUTES

Optional. A comma-delimited list of file attributes to be set on the file being written. The following file attributes are supported: