| Syntax |
|
| 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.
|
| Examples | |
| $io.indexOf{public://index.html}{1}{} | |
| Group | Special |
| Minimum required transaction-mode: | READ=IO |
| Required scripting permission of the developer | PERMISSION_FL_BASIC |
| Minimum parameters | 3 |
| Maximum parameters | 4 |