Command Reference

Delete Text Line

This action will delete a specified line of text from a text file.

Action ID: 43
Action Category: Text Files

Settings

File name:

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

Line number:

The is the zero-based line number of the line of text that you wish to delete.

Return Values

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

1

Failed to delete text line.

File not found.
<<File name>>

2

Failed to delete text line.

Error opening file.
<<File name>>

3

Failed to delete text line.

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

4

Failed to delete text line.

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

5

Failed to delete 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