By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,453 Members | 1,527 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,453 IT Pros & Developers. It's quick & easy.

Searching a C++ file for keyword

P: 6
mmm...I'm a fresh student learning programming, C++.
Now im facing a problem in designing a program.

The following is my problem,hope somebody can help me out!

(1) i have few text files, my program has to search a key word from those files and also count how many times does the word appear in the file. How should i do?

(2) How to create a file and read the contents to do the operations as mentioned above.

Hope somebody can show me....Thanks for advance!
Sep 21 '06 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 100+
P: 2,328
Hi there,

Thanks for joining our community, I will move this question to the right forum. For future reference, posting in the right forum using the right titles will increase chances of getting a positive reply.

Sep 22 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.