$INCLUDE "rapidq.inc"
DIM file_list AS QFILESTREAM
DIM file_search AS QFILESTREAM
DIM filelist AS STRING :
DIM search_what AS STRING :
filelist="filelist.txt" :
search_what="Rapid-Q" :
file_list.OPEN(filelist,fmOpenRead)
DO
IF file_list.eof THEN EXIT DO
fn$=file_list.readline
file_search.OPEN(fn$,fmOpenRead)
DO
IF file_search.eof THEN EXIT DO
lin$=file_search.readline
IF INSTR(lin$,search_what)>0 THEN
SHOWMESSAGE fn$
EXIT DO
END IF
LOOP
file_search.CLOSE
LOOP
file_list.CLOSE
|