Text File - Count Lines

Counts the number of lines in a text file and stores the result in a variable.

Action ID:
Action Category:
Action List Syntax:

55
Text File
<<VARIABLE>>
= TextFile.CountLines (<<FILENAME>>)

Settings

File name:

The full path and filename of the text file whose lines you want to count.

Store line count in variable:

The variable that the line count will be stored in.

Error Codes

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

1

MSG_ERR_COUNT_TEXT_LINES

MSG_ERR_COUNT_TEXT_LINES
MSG_ERR_FILE_NOT_FOUND
<<FILENAME>>

2

MSG_ERR_COUNT_TEXT_LINES

MSG_ERR_COUNT_TEXT_LINES
MSG_ERR_OPENING_FILE
<<FILENAME>>

3

MSG_ERR_COUNT_TEXT_LINES

MSG_ERR_COUNT_TEXT_LINES
MSG_ERR_FILE_TOO_LARGE
<<FILENAME>>

Examples

None