Read File Activity

Description:

Reads a file as text.

Inheritance Hierarchy:

System.Object
  System.Activities.Activity
    System.Activities.AsyncCodeActivity
      Geocortex.Workflow.Activities.ReadFile

Function:

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 http://server.domain.com/folder/file.txt, 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.

Properties:

Name Description

In Arguments

Encoding

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 https://msdn.microsoft.com/en-us/library/ms404377.aspx.

File Uri

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

Misc

Display Name

ReadFile

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

Text

The text content of the file.

Version Information:

Supported from: Geocortex Essentials 3.9.

© 2019 Latitude Geographics Group Ltd. All Rights Reserved.

Documentation Version 4.11