filefindstring

Locates a string in an open file.

Syntax

filefindstring(fid, string)

Argument

fid
The file ID (a string).
string
The search string.

Example

Templex Expression Result
{filefindstring(fid, “Chapter 2”)} 1 (if found) or 0 (if not)
Curve Math Vectors Result
N/A N/A

Comments

Conducts a forward search of the file, starting with the current position and stopping when the string is found or the end of the file is reached. After the search, the current position of the file is just after the last character that matched the string.