You need :
-
open_dir() : To open the directory wanted.
-
next_file() : To read the next file in the directory handle.
-
fopen() /
fgets() /
fclose() : To open the file, reading each line, and closing the file.
And while reading each line, you would need to use something like
contain().
But depending what you need to find, you may want to try regex.
__________________