[Files] Write

Q100035: [Files] Write

Takes text input and writes it to a file.

Parameter In/Out Description Other Info
Input text value In Text that is to be written to a file.
Output file pathname In The fully qualified pathname for the file you want to write to. Example: 'c:\temp\MyFile.txt'
Append or Replace? In Choices: Replace, Append
If the output file already exists, do you want to append to it, or replace it?
Default: Replace
What to add to content? In Choices: Nothing, OneTrailingNewLine, TwoTrailingNewLines, TimestampedHeaderWithTwoTrailingNewLines
You can add one or two newlines after the content, or add a timestamped header before the content. If you select None, the output will be unchanged. Any other selection will trim all newlines from the output before adding newlines. So, for example, if you want two trailing newlines written to your file, then exactly two will be written, regardless of whether the raw text has 0 or 1000 trailing newlines.
Default: Nothing

(Italics = required parameters)

Notes

The [Files] Write module is the companion to the [Files] Read module. While the latter module reads in a files contents to an output parameter, the write module does the opposite and allows you to take the data in a given output parameter and write it all out to a specified file.

 
Last Updated:
10/3/2023 1:06:56 AM
JobServer.NET Knowledgebase © 2025