Text File - Get Line

Copies a line of text from a text file into a variable, based upon a zero-based index.

Action ID:
Action Category:
Action List Syntax:

58
Text File 
<<VARIABLE>>
= TextFile.GetLine (<<FILENAME>>, <<LINENUMBER>>)

Settings

File name:

The full path and filename of the text file.

Line number:

The zero-based line number of the line of text that you want to copy.

Store line in variable:

The variable that the line of text will be copied into.

Error Codes

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

1

MSG_ERR_GET_TEXT_LINE

MSG_ERR_GET_TEXT_LINE
MSG_ERR_FILE_NOT_FOUND
<<FILENAME>>

2

MSG_ERR_GET_TEXT_LINE

MSG_ERR_GET_TEXT_LINE
MSG_ERR_OPENING_FILE
<<FILENAME>>

3

MSG_ERR_GET_TEXT_LINE

MSG_ERR_GET_TEXT_LINE
MSG_ERR_FILE_TOO_LARGE
<<FILENAME>>

4

MSG_ERR_GET_TEXT_LINE

MSG_ERR_GET_TEXT_LINE
MSG_ERR_LINE_OUT_OF_RANGE
<<LINENUMBER>>
<<FILENAME>>

Examples

None