After opening the file you need to read the file by fgets() function. fgets will read line by line from the file. While reading the file itself you can search the keyword from every line of the file.

Sample code,