fileContains

Description

Returns "true" if the file contains any string that matches the specified regex. If the regex contains a backslash replace it with two backslashes otherwise you will get a syntax error.

Parameters

Return Type

Boolean (true/false)

Example

//This will match any "com.keplerrominfo.jira" occurence in myfile.txt. fileContains("C:/myfile.txt","com\\.keplerrominfo.jira");

It is recommended that you use absolute file paths with forward slashes ( / ).

See also