I'm wanting my program to be able to search for a string within a file. I have been searching the net but I have been unable to do so. Can anyone give me a direction to look or an example?
Thanks,
...Dan
I'm wanting my program to be able to search for a string within a file. I have been searching the net but I have been unable to do so. Can anyone give me a direction to look or an example?
Thanks,
...Dan
Read the entire file into a std::string object and take advantage of the std::string::find() function. That should give you plenty of things to google.
Sent from my iPadŽ
alright