Help with .txt file

Jan 16, 2008 at 8:50pm
Hi, I am new here, and I have a question. How is it that I would make a program that searches a .txt file and displays the text found, like you enter a certain word and it searches for that word in the text file?
Last edited on Jan 16, 2008 at 8:55pm
Jan 18, 2008 at 7:27am
http://www.cplusplus.com/doc/tutorial/files.html

I would recommend reading about 'Input/Output with files'. And then if you have any problems after trying yourself, bring them here. If you don't try first, you won't learn. And you probably won't get anyone to help you if you haven't tried first. I'm not trying to sound mean! I'm just giving it to you straight! :D
Jan 20, 2008 at 12:30am
I read that and I read a couple of other things about ifstream, but if it was there I still haven't found it, how do you search a text document?
Jan 20, 2008 at 12:30am
I read that and I read a couple of other things about ifstream, but if it was there I still haven't found it, how do you search a text document? It may have showed it but I must not have understood it if it did.
Last edited on Jan 20, 2008 at 3:25pm
Jan 20, 2008 at 12:31am
Why did it double post me, I certainly didn't mean to double post, sorry.
Last edited on Jan 20, 2008 at 12:31am
Topic archived. No new replies allowed.