file.findInFile
| Syntax |
file.findInFile (path, pattern)
|
| Params |
path is a legal path name to the file in which you wish to search for the designated pattern. pattern is a string of characters for which you wish to search in the file named in path.
|
| Action |
Searches the file's data fork's contents for the string denoted by the parameter pattern.
|
| Returns |
True if the pattern is in the file, false otherwise.
|
| Examples |
file.findInFile ("C:\\Program Files\\Frontier\\sample.txt", Frontier) » true
file.findInFile ("System:System Folder:States", "Nevada")
file.findInFile ("System:System Folder:States", "Europe")
|
| See Also |
file.findInFolder
|