Question: Search a File (make it simple) DESCRIPTION Create a program named FileSearch.cpp that prompts to user for a ne name and a value to search

Search a File
(make it simple)  Search a File (make it simple) DESCRIPTION Create a program named

DESCRIPTION Create a program named FileSearch.cpp that prompts to user for a ne name and a value to search for The program then displays a message indicating if the value is present in the file. The search value can be a word, number, or anything that doesnt contain spaces The following examples are what should be displayed if there is a file named input.txt, with the following content But I will sing of your strength and will joyfully proclaim your faithful love in the morning. For you have been a stronghold for me, a refuge in my day of trouble. Psalm 59:16 CSB Sample Output (user Input is in yellow) Enter the name of the file: input.txt Enter a value to search for: Stronghold "stronghold" was found in "input.txt". Sample Output (user Input is in yellow) Enter the name of the file: input.txt Enter a value to search for: STRONGHOLD "STRONGHOLD" was not found in "input.txt". Sample Output (user input is in yellow) Enter the name of the file: input could not open "input". Submit only your source file named FileSearch.cpp

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!