<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.
Required. The full path name of the file to be created.
Required. The content of the file to be created.
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.
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.
Optional. A comma-delimited list of file attributes to be set on the file being written. The following file attributes are supported:
If ATTRIBUTES is not used, the file's attributes are maintained. If Normal is specified as well as any other attributes, Normal is overridden by whatever other attribute is specified.
Individual attributes must be specified explicitly. For example, if you specify just the ReadOnly attribute, all other existing attributes are overwritten.