Question
Using C++: Create a program that will prompt the user for a file name to work with. Then prompt the user for a string to
Using C++: Create a program that will prompt the user for a file name to work with. Then prompt the user for a string to search for. The program will search the file for the string the user provided, each line in the file is a string. So a line should be read from the file, search the line for the string. If the string is in that line then it should display the line. If the string is not in the line then it should read the next line from the file. The program should also keep track of how many times it found the string and how many line from the file it has read completely. Provide the text file you created for this program. Provide a /*pseduo code*/ at the top of the source code, and detailed commenting within the code.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started