I am trying to write a program that can search or find a character string in a text file.
Which means when you ifstream and infile a text and then search for a string.
For example in the following sentence search for the word of "direct":
Peter is a self-direct learner.
How can I start writing a function for this?