Hi There,
I would like to search a huge file for a particular string and get the position of each string found . I am not sure how i can archive a loop correctly.
What i have so far:
max-line-size ALLOCATE THROW TO list-contents
S" %FOUND-FULLPATH%" EVAL-SUBST R/O OPEN-FILE-SHARED THROW TO list-file
BEGIN list-contents max-line-size 2- list-file READ-LINE THROW WHILE
list-contents + 0 SWAP C!
-- and then something like that
BEGIN WHILE (finding str)
--- get me the exact position within the file of the found string
--- str StringGetPos position !
REPEAT
I would appreciate some help with possible example code, as this is currently just over my head.
Thanks a lot!
Matt