Read File Activity


Reads a file as text.

Inheritance Hierarchy:



This activity reads a file from a URI. This could be a conventional file path such as C:\folder\file.txt, a web URL such as, or the URI for a file in the Essentials Sites folder, such as gcxfile:///folder/file.txt. The file is read as text, so this activity should only be used to read files that contain textual information.

The application executing the workflow must have read access to the file.

In a Workflow:

The Read File activity can be used to read the contents of a file, for example, configuration file that can then be used by other activities or a file that contains content that should be presented to the user.


Name Description

In Arguments


The character encoding of the file. If not specified, the activity automatically attempts to determine the encoding. For example: ASCII; Unicode; UTF8.

For more information on encodings see

File Uri

The URI of the file to read. For example: C:\folder\file.txt;; gcxfile:///folder/file.txt.


Display Name


You can change the name of an activity to one that describes what it does. A descriptive name can make a workflow easier to interpret and maintain.

Out Arguments


The text content of the file.

Version Information:

Supported from: Geocortex Essentials 3.9.