Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Fast Library For Clipper 3.02 Reference - <b>fsearch()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
    fSearch()

         Searches a string into a file

    Syntax:

         fSearch( cFile, cString ) -> aPosiciones

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

    Description:

         Searches 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

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson