I'm slowly learning visual c++ and need a little bit of help.
How do I search the contents of a file for a string ?
For example I wish to search a text file say (test.txt) that I know the name of for the words "hello" . I dont know the exact location of the words and dont care about the location, I just need to know if the file contains "hello" and then execute some commands if it exsists.
Any help would be apreeciated and source code to pull apart also helps me heaps.
How do I search the contents of a file for a string ?
For example I wish to search a text file say (test.txt) that I know the name of for the words "hello" . I dont know the exact location of the words and dont care about the location, I just need to know if the file contains "hello" and then execute some commands if it exsists.
Any help would be apreeciated and source code to pull apart also helps me heaps.