Find Text In File

Returns text found in a given file.

Privileges

Normal

Input Parameters

Name Type Required Description
File String Yes The name of the file to be searched.
Search For String Yes The string to search for in the file.
Use Regular Expression Boolean Yes Determines if the search string should be treated as a regular expression.

Output Parameters

Name Type Description
Found String The string that has been found.
Result Number Returns a success value of zero or any value other than zero to indicate failure.

Example Input Parameters

Name Type Required Example
File String Yes C:\folder1\folder2\file1.txt
Search For String Yes Error
Use Regular Expression Boolean Yes Optionally, you can use regular expressions when searching for text.