Required Parameters
- file: The full path (including the filename) of the file to write to. If the file does not exist, it is created.
- data: The data to write to the file.
Optional Parameters
- force: Controls whether the operation creates missing directories in the path set in the file parameter. The allowed values are
trueandfalse. The default istrue. - mode: The mode of writing. The allowed values are
truncateandappend. The default istruncate, which overwrites the contents of the file if the target file already exists. - encoding: The encoding to use when creating the file. The allowed values are determined by your JVM/OS. The default is
UTF-8.
Output Attributes
- file:file: The full path of the file written to.
- file:cdate: The modified date of the file.