IDNStudy.com, ang platform na nag-uugnay ng mga tanong sa mga sagot ng eksperto. Magtanong at makatanggap ng maaasahang sagot mula sa aming dedikadong komunidad ng mga eksperto.

How to find a specific wqord in a file in c?

Sagot :

Answer:

C Program to search a word in a given file and display all its...

Use FILE object to access/open the file you want to search.

Let wrd be the word you want to search.

Initialize line = 0. line is used to track the line number.

Use fgets() to read the target file line by line. ...

Close the file.

Explanation:

I Hope its helps^^