Find in Textfiles Activity
The Find in Textfiles activity enables users to search for specific text within .txt, .csv, .doc, and .docx files. It can target all files within a specified directory or a single file. If the searched text is found, the activity writes the names of the matching files to a designated dataset.
| Field | Description | Requirement |
|---|---|---|
| Directory name | Specifies the full path to the directory or the specific file to be searched. | Required |
| File type | Selects the file extension(s) to include in the search (e.g., .txt, .csv, .doc, .docx). | Required |
| Search | Defines the specific text string to locate within the target files. | Required |
| Dataset name | Provides a reference name for the dataset that will store the names of files containing the searched text. | Required |
Action Types & Examples
Dataset Output
- Format: Dataset containing strings
- Example Result:
searchResult
Implementation Examples
Field Setup
Directory name:C:\RobustaFile type:txtSearch:RobustaDataset name:searchResult
Execution Parameters
Timeout:60000ContinueOnError:trueLogActivity:true
Technical Notes
This activity supports searching within common document formats including plain text (
.txt), comma-separated values (.csv), Microsoft Word documents (.doc,.docx). The output dataset, referenced by the Dataset name, will contain the full paths or names of all files where the specified search text was found. Ensure the provided directory path is accessible by the automation agent and that file types are correctly specified for an accurate search.