Hey all,
I need a code or an algorithm on how to find a specific string inside a text file.
e.g. I have the file test.txt which is 10kb and I need to find out if the string "Hello, I'm here" exisits in the file, if it exists I need to set the pointer to the beginning of the next line.

Posted on 2002-03-09 15:16:24 by Cube
Welcome to the board!

There is a wonderful text search feature on this board.
A search for "string search" should turn up quite a few leads.
Posted on 2002-03-09 15:20:35 by bitRAKE
There's the BM algo from hutch, horespool...Or KMP now already in its last phase of testing and trying check out the algo section. :)
Posted on 2002-03-09 15:20:47 by stryker