cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Searching Text File
Searching Text File
May 17, 2012 at 4:12pm UTC
mackw44
(29)
Hi, I am wondering how to search through a text file for one specific word and display what is after it. For example, search for the word Phone Number: and display just the number.
May 17, 2012 at 7:11pm UTC
exiledAussie
(131)
Use the strstr function.
http://www.cplusplus.com/reference/clibrary/cstring/strstr/
Topic archived. No new replies allowed.