Can someone help me?

There is a text file. Make a C application in which you type a string, which counts the number of times the string is contained in the text file and print it on the display. Make a new text file which has the initial text file content but in which it is eliminated the string typed at the beggining.

Sorry for my english, I'm not quite good at it.