Write File

The Write File step writes data from a binary variable to files on a local or remote desktop. Use this step to write to a file on the Robot File System (for an example, see the Tungsten RPA Administrator's Guide).

In Design Studio, to execute a robot that uses Robot File System, place your robot in the shared project.

The Write File step belongs to the File System and Output categories.

Properties

Device

Select the reference name to use. This reference name is specified in the Devices property of the Call Robot step.

Contents

Specify a value to write to a file. You can specify a variable name in this field.

For example, when you write to a file on a Robot File System, the field can contain the value "data".binary("utf-8"), where "data" is the string written in the file. The file content must be binary.

File Access

Specify how the file must be accessed.

To write to a file on the specified local or remote device, select Direct Access.

To write to a file on a Robot File System, select Via RFS.

File Name

Specify the path to the file to which the data is written.

For example, to write to a file on a Robot File System, the path must start with the configured file system name and can be similar to the following: myshare/myfile.bin

The file system name to use must correspond to that specified in the Robot File System section in the Management Console.

Append

Select to append the contents to the file if it already exists. This option adds new content at the end of an existing file, regardless of the file format.

If not selected, a new file is always created (overwriting any existing file with the same name).

Appending data to files is currently supported only for the Direct Access files.

Create Directories

Specifies whether to create the necessary directories on the file path before creating a new file. If not selected, the step will fail if any directory on the path does not exist.