Command Reference

Get Text Line

This action will store a line of text from a text file, based upon a zero-based index.

Action ID: 45
Action Category: Text Files

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 store.

Store line in variable:

The variable that will store the line of text that you specify.

Default:

The default value that your variable will be set to if the specified line number cannot be found.

Return Values

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

1

Failed to get text line.

File not found.
<<File name>>

2

Failed to get text line.

Error opening file.
<<File name>>

3

Failed to get text line.

The file is too large to be read
<<File name>>

4

Failed to get text line.

Line number is out of range.
<<Line number>>

Example

None available.

 

See Also: Alphabetical List of Actions, Categorical List of Actions, On Error tab