Docs

RunMacro Documentation

Create your first robot, then go further as needed.

Clear step-by-step guides to create, run, and improve robots for repetitive computer work.

Docs File Append Text File
📄 File

Append a line to a text file in RunMacro

The Append Text File command adds text to the end of a TXT file (without overwriting existing content).

Prerequisites#

  • Add Append Text File to the macro.
  • Prepare the data or target that Append Text File will use.

Supported modes#

  • RunMacro Runner

What it does#

The Append Text File command adds text to the end of a TXT file (without overwriting existing content). It supports variables in the content and auto-creates the file/folder if missing.

Screenshots & video#

RunMacro Append Text File command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Append Text File command in RunMacro.

When to use it#

  • Write a data log to a file to keep it.
  • Accumulate results line by line across runs.
  • Save a list (emails, tokens...) to TXT.

When not to use it#

  • Do not use it for structured data, lock-required concurrent writes, or encrypted content.

Configuration steps#

  1. Add a File › Append Text File command.
  2. Choose the file path (and output folder if needed).
  3. Enter the content (variables supported); choose whether to add a newline. Save.

Every option explained#

File path + Output folder#

The TXT file to append to; you may set a separate output folder.

Content (text)#

The text to write; supports {...} variables.

Add newline#

Automatically add a newline after the content.

Expected result#

After execution, Append Text File completes the described action and makes its result available to the next step.

Real example#

Example: append an email to a list#

  1. Append Text File emails.txt, content {email}, newline on.
  2. Each run appends one email to the file.

Limitations and failure cases#

  • Encoding, newlines, permissions, and multiple writers can corrupt/interleave text; the operation only appends.

Tips & common mistakes#

For structured multi-column output, use Append Custom CSV Row or Data Source - Write Variables.

Verification details#

  • commands/data_source.py
RunMacro robot

Robots do the work. Your time is yours.

Create a robot in minutes, no coding needed. Reliable execution, remote management, transparent costs — and you always stay in control.