Cloud Application Integration (On-Premises) : Integration Server Built-In Services : File Folder : pub.file:stringToFile
pub.file:stringToFile
WmPublic. Writes text to a file.
Input Parameters
fileName
String[] Fully qualified name of the file to be written to.
data
String Text to be written.
append
String Optional. Specifies whether to append or overwrite if the specified file already exists. The default behavior is to create a new file if the file does not exist or overwrite an existing file if the file already exists.
Set to:
*true to append if the file already exists.
*false to overwrite if the file already exists.
encoding
String Optional. Name of a registered, IANA character set (for example, ISO-8859-1).
If you specify an unsupported encoding, the system throws an exception. If no value is specified or if the encoding is set to autoDetect, the default operating system encoding is used.
Output Parameters
None.
Usage Notes
For security reasons, the pub.file:stringToFile service checks the input fileName parameter against the list of allowedWritePaths values specified in the fileAccessControl.cnf file. If the input fileName is not on the allowed list, an exception is thrown. For information about configuring the fileAccessControl.cnf file, refer to File Access Control Configuration for the pub.file Services.
Copyright © 2015- 2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback