WRITE TEXT CONTENTS TO A FILE

Writes a provided text string to a named file and returns the resulting file path. Use this worker whenever a workflow needs to persist plain-text content (logs, snippets, generated code, etc.) to disk for downstream consumption.

When to use

Classification: process.

Tagged: file, persist, plain-text, save, text, write.

Inputs

Label ID Type Default Required Description
File name filename scalar   Target file name (including extension, e.g. ‘output.txt’) to which the text will be written; leave blank to let the worker auto-generate a default name.
Text to be written texttobewritten text   Plain-text content to write into the file; accepts any UTF-8 string — newlines and special characters are preserved as-is.

Outputs

Label ID Type Description
text_write_to_file_output_1 text_write_to_file_output_1 text Path or reference to the newly created file containing the written text; pass this to downstream file-read or archive workers.

Disciplines

  • data.io.file

Auto-generated from transformation schema. Worker id: text_write_to_file. Schema hash: f3ffa9f98c2e. Hand-curated docs in workerexamples/ override this page when present.