Text File - Read

Reads the contents of a text file into a variable.

Action ID:
Action Category:
Action List Syntax:

31
Text File 
<<VARIABLE>>
= TextFile.Read (<<FILENAME>>)

Settings

Variable name:

The name of the variable to store the text file's contents in.

File name:

The name of the text file to read.

Error Codes

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

1

MSG_ERR_READ_TEXT_FILE

MSG_ERR_READ_TEXT_FILE
MSG_ERR_FILE_NOT_FOUND
<<FILENAME>>

2

MSG_ERR_READ_TEXT_FILE

MSG_ERR_READ_TEXT_FILE
MSG_ERR_OPENING_FILE
<<FILENAME>>

3

MSG_ERR_READ_TEXT_FILE

MSG_ERR_READ_TEXT_FILE
MSG_ERR_FILE_TOO_LARGE
<<FILENAME>>

Examples

Loading text into a Text Box Object