Find a string in text file c++

September 23, 2011 at 01:16:43
Specs: Windows 7
I want to find a string given as input by the user in the already existing text file.
Product.txt has the following records
PEPSI 20cans 3/3/2013
COKE 40cans 4/4/2012
LIME 90cans 9/9/2012

I user wants to find the number of coke cans available.
How do I do??
How to find the input( coke) in the text file C++ ??
PLS help us...

See More: Find a string in text file c++

Report •

September 23, 2011 at 05:51:40
You're in college, great!
You have homework, fine.
You want help on your homework, good!
You want "help" by copying off the cool kids who aren't even in your class, bad.

If you want help, show us what you have, what you tried, and why you think it didn't work. Or sacrifice money, I guess.

How To Ask Questions The Smart Way

Report •

September 23, 2011 at 06:04:56
I'm more used to C or C# but try looking at this webpage:

Report •
Related Solutions

Ask Question