Skip to content

Open Activity

The Open activity enables users to access and load existing text files. This activity facilitates the processing of various text document types, including CSV and plain text, by configuring parameters such as file path, encoding, and delimiter.

Field Description Requirement
Text name Provides a reference name for the text file to be opened. Required
Text file name Specifies the full path to the text file. Required
Has header Indicates whether the first line of the text document contains header information. Required
Delimiter Defines the character used to separate columns when the document type is CSV. Optional
Type Selects the type of text document to be opened from a predefined list (e.g., CSV, Text). Required
Encoding Chooses the character encoding to be used for reading the text file. Optional

Action Types & Examples

Open Text File

  • Format: Boolean
  • Example Result: true

Implementation Examples

Field Setup - Text name: newText - Text file name: C:\temp\notes.txt - Has header: true - Delimiter: ; - Type: CSV_Default - Encoding: UTF-8

Execution Parameters - TextName: newText - FilePath: C:\temp\notes.txt - HasHeader: true - Type: CSV_Default - Encoding: UTF-8

Technical Notes

  • Ensure that the specified file path is accessible by the execution environment and that the user account has appropriate read permissions for the target file.
  • Incorrect encoding or delimiter settings can lead to parsing errors and corrupted data when reading the file.
  • The activity will throw an exception if the required parameters are not configured or if the file does not exist at the specified path.