$io.indexOf

Returns the first index of a string in a file or -1 if not found.
Syntax
    $io.indexOf{siteforum_path}{bytes_per_char}{search_string}[{start_offset}]?
Documentation$io.indexOf:
Returns the first index of a string in a file. If the string is not found in the file -1 is returned. This method is a shortcut for reading the file and using the normal $indexOf function. It's more performant and won't eat up all your memory especially if you need to deal with big files.
    Paramter:
      1 - path in SITEFORUM protocol notation 2 - bytes per character 3 - search string 4 - start offset in file; optional, defaults to 0
    Returns:
      Index of search string in file.
    Throws:
      IllegalArgumentException, IOException
Examples
$io.indexOf{public://index.html}{1}{}
GroupSpecial
Minimum required transaction-mode:READ=IO
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters3
Maximum parameters 4