Append Line
This activity appends a line at the end of a text file.
Activity Parameters
The Append Line activity parameters can be provided by manual inserted values or via IN arguments or variables:
Parameters:
- File (text box editor type) (type: string): the full path (including the file name) of the file. If does not exist, it will be created.
- Line (text box editor type) (type: string): the string to be appended to the end of the file.
The Read Only Output variable are the possible output values that the activity will provide:
- Output Status (type: boolean): outputs the result status. If the operation succeeded then TRUE, otherwise FALSE.
Delete Line
This activity deletes a line from a text file based on the given line number.
Activity Parameters
The Delete Line activity parameters can be provided by manual inserted values or via IN arguments or variables:
Parameters:
- File (text box editor type) (type: string): the full path (including the filename) of the file.
- Index (text box editor type) (type: int32): the line number of the line which will be deleted from the file.
The Read Only Output variable are the possible output values that the activity will provide:
- Output Status (type: boolean): outputs the result status. If the operation succeeded then TRUE, otherwise FALSE.
As mentioned above, the values for all the required parameters can be provided by IN arguments or variables. Below is an example of predefined arguments, ready to be used by the Delete Line activity:
Find Text
This activity finds and returns the lines that contain a specific text from a text file.
Activity Parameters
The Find Text activity parameters can be provided by manual inserted values or via IN arguments or variables:
Parameters:
- File (text box editor type) (type: string): the full path (including the file name) of the file.
- Search Text (text box editor type) (type: string): the text to be found in lines within the file.
As mentioned above, the values for all the required parameters can be provided by IN arguments or variables. Below is an example of predefined arguments, ready to be used by the Find Text activity:
The Read Only Output variable are the possible output values that the activity will provide:
- Output (type: collection<string>): outputs a Collection containing the matching lines.
Get Lines
This activity retrieves lines from a text file based on the specified parameters.
Activity Parameters
The Get Lines activity parameters can be provided by manual inserted values or via IN arguments or variables:
Parameters:
- Count (text box editor type) (type: int32): the number of lines to be retrieved starting from the given start index.
- File (text box editor type) (type: string): the full path (including the filename) of the file. If does not exist will be created.
- Index (text box editor type) (type: int32): the line start index from which lines are retrieved from the file.
As mentioned above, the values for all the required parameters can be provided by IN arguments or variables. Below is an example of predefined arguments, ready to be used by the Get Lines activity:
The Read Only Output variable are the possible output values that the activity will provide:
- Output (type: collection<string>): outputs a Collection containing the retrieved lines.
- Output Rows (type: int32): outputs the number of retrieved lines.
Insert Line
This activity insert a line at a specified position in a text file.
Activity Parameters
The Insert Line activity parameters can be provided by manual inserted values or via IN arguments or variables:
Parameters:
- File (text box editor type) (type: string): the full path (including the filename) of the file.
- Index (text box editor type) (type: int32): the index where the line will be inserted.
- Line (text box editor type) (type: string): the string to be inserted in the file.
The Read Only Output variable are the possible output values that the activity will provide:
- Output Status (type: boolean): outputs the result status. If the operation succeeded then TRUE, otherwise FALSE.
As mentioned above, the values for all the required parameters can be provided by IN arguments or variables. Below is an example of predefined arguments, ready to be used by the Insert Line activity:
Search and Replace Text
This activity finds a section of text and replaces it with another one, in a text file.
Activity Parameters
The Search and Replace Text activity parameters can be provided by manual inserted values or via IN arguments or variables:
Parameters:
- File (text box editor type) (type: string): the full path (including the filename) of the file.
- Replace Text (text box editor type) (type: string): the text to be replaced in lines within the file.
- Search Text (text box editor type) (type: string): the text to be found in lines within the file.
The Read Only Output variable are the possible output values that the activity will provide:
- Output Status (type: boolean): outputs the result status. If the operation succeeded then TRUE, otherwise FALSE.
As mentioned above, the values for all the required parameters can be provided by IN arguments or variables. Below is an example of predefined arguments, ready to be used by the Search and Replace Text activity: