Hey programmers!
I am searching for a code and unable to get it.
I know this is the best place to ask.
Please help me with this file handling code.

"How to count the occurrences of a specific string in a text file using c"....
Please help as soon as possible...
thank you

we are not going to just hand you the code, but will be glad to help you with your program. What exactly don't you understand? Have you read your textbook about file handling? Have you used google to search for "fstream tutorials"? I suspect not.