[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
    fSearch()

         Searchs a string into a file

    Syntax:

         fSearch( cFile, cString ) -> aPosiciones

         cFile   : The file to search in
         cString : The string to be searched

    Description:

         Searchs a string into a file and returns an array with all the
         positions that the string has been found or an empty array if
         the string hasn't be found in the file.

    Return:

         An array from 0 to n elements, each one contains one relative
         position to the file, starting from 0, where mentioned string has
         been found.

    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