This is a C++ program Problem: In this project, you are tasked with developing a console-based text-editor. The required functionalities for your text-editor are as follows: 1. View contents of the user-specified text file 2. Create a new text file 3. Write text to the user-specified text file 4. Add/append text to the user-specified text file 5. Search for a word in the user-specified text file 6. Replace an existing word with another word in the user-specified text file Instructions: At the start of your program, it should display a menu listing possible choices for the user which should highlight various features of your text-editor. Depending on the user’s choice, your program should run the appropriate task and display appropriate messages. Once the task is complete, your program must return to the main menu. In case of an error, your program must gracefully handle the error (for instance, if the specified text file does not exist, your program should display an appropriate error message and return to the main menu). You are NOT required to use any graphical elements in your program. Hints: 1. To search for a word in a line of text, you may use the find() function that works with C++ string objects. Quick reference: https://www.javatpoint.com/cpp-string-find-function 2. While implementing the search and replace functionality, you may need to make a temporary copy of the text file.

Oh no! Our experts couldn't answer your question.

Don't worry! We won't leave you hanging. Plus, we're giving you back one question for the inconvenience.

Submit your question and receive a step-by-step explanation from our experts in as fast as 30 minutes.
You have no more questions left.
Message from our expert:
Our experts need more information to provide you with a solution. Please resubmit your question, making sure it's detailed and complete. We've credited a question to your account.
Your Question:

This is a C++ program

Problem:
In this project, you are tasked with developing a console-based text-editor. The
required functionalities for your text-editor are as follows:
1. View contents of the user-specified text file
2. Create a new text file
3. Write text to the user-specified text file
4. Add/append text to the user-specified text file
5. Search for a word in the user-specified text file
6. Replace an existing word with another word in the user-specified text file

Instructions:
At the start of your program, it should display a menu listing possible choices for
the user which should highlight various features of your text-editor. Depending on the
user’s choice, your program should run the appropriate task and display appropriate
messages. Once the task is complete, your program must return to the main menu.
In case of an error, your program must gracefully handle the error (for instance, if
the specified text file does not exist, your program should display an appropriate error
message and return to the main menu).
You are NOT required to use any graphical elements in your program.
Hints:
1. To search for a word in a line of text, you may use the find() function that
works with C++ string objects.
Quick reference: https://www.javatpoint.com/cpp-string-find-function
2. While implementing the search and replace functionality, you may need to
make a temporary copy of the text file. 

Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY