[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
fSearch()
Searches for a string in a file
Syntax:
fSearch( cFile, cString ) -> aPosition
cFile : The file to searched
cString : The string to be found
Description:
Searches for a string in a file and returns an array with all of the
positions that the string has been found or an empty array if
the string isn't found in the file.
Return:
An array from 0 to n elements, each element contains one relative
position to the file, starting from 0.
Example:
aRet := fSearch ( "Test.txt", "i want to be free" )
For nInd := 1 To Len ( aRet )
? aRet [ nInd ]
Next
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson