Command Reference

Insert Text Line

This action will insert a line of text at the specified line number.

Action ID: 46
Action Category: Text Files

Settings

File name:

This is the full path and filename of the text file.

Insert new line at position (-1 for end of file):

This is the zero-based line number where the line of text will be inserted. Use -1 to append the line to the end of the text file.

Line to insert:

This is the line of text that will be inserted into the text file.

Return Values

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

2

Failed to insert text line.

Error opening file.
<<File name>>

3

Failed to insert text line.

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

4

Failed to insert text line.

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

5

Failed to insert text line.

Could not write to text file.
<<Line number>>

Example

None available.

 

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