The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information.... |
Home BasePack FileSys Procedures Files FindFirstMatchInTextFile | |||||||||
See also: ReadNextWordInTextFile, DetectStringInFile | |||||||||
FindFirstMatchInTextFile |
|||||||||
The function FindFirstMatchInTextFile searches the text file of name FName for the presence of the string SearchExp. The parameter IgnoreCase determines whether the search is case sensitive. The search is a simple text search (no wildcards or regular expressions supported). The file must not be open. The function returns a zero value if the searched string is not present in the file. If the search string has been found, the variable parameter MatchedLine returns the line which contains the matched search expression. The function value is the index of the first character of the search expression in the parameter MatchedLine.
|