Hello,
Need a hint on how to search for a piece of text (string) when reading from a txt file (line by line).
This is a discussion on Newbie help with search within the C++ Programming forums, part of the General Programming Boards category; Hello, Need a hint on how to search for a piece of text (string) when reading from a txt file ...
Hello,
Need a hint on how to search for a piece of text (string) when reading from a txt file (line by line).
strstr()
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
Code:std::string text = "Some text"; if(text.find("...") != string::npos) { //We found something }
st5, use specific subject lines.
http://www.catb.org/~esr/faqs/smart-questions.html
benforbes@optusnet.com.au
Microsoft Visual Studio .NET 2003 Enterprise Architect
Windows XP Pro
Code Tags
Programming FAQ
Tutorials