SlideShare a Scribd company logo
Write a program that opens a local file
C:DataDirectorydata.txt reads in the data into your program
without removing the data from the file and appends new data
onto the end of the existing data in the program, and then
appends the new data onto the existing data within the file.
For example, if the data file originally contained the following
data:
Hello
Then when your program is done, it should say:
HelloHello my name is Bob
Also, you must utilize exception handing technique to validate
that the file has been open, and offer the user a chance to enter
a correct filename until the file is found.
Hint: Use the overloaded open functions, or use random access
methodology.
Save program as a cpp file type.

More Related Content

More from dunningblair

Write a two paragraph message to post in the Effective Speakers disc.docx
Write a two paragraph message to post in the Effective Speakers disc.docxWrite a two paragraph message to post in the Effective Speakers disc.docx
Write a two paragraph message to post in the Effective Speakers disc.docx
dunningblair
 
Write a three-part PAPER.  Part I  Show or discuss the existing a.docx
Write a three-part PAPER.  Part I  Show or discuss the existing a.docxWrite a three-part PAPER.  Part I  Show or discuss the existing a.docx
Write a three-part PAPER.  Part I  Show or discuss the existing a.docx
dunningblair
 
Write a summary of the fallowing Chapters 4, 5, 7, & 8 from the bo.docx
Write a summary of the fallowing Chapters 4, 5, 7, & 8 from the bo.docxWrite a summary of the fallowing Chapters 4, 5, 7, & 8 from the bo.docx
Write a summary of the fallowing Chapters 4, 5, 7, & 8 from the bo.docx
dunningblair
 
Write a thorough review of gifted education history and policy for t.docx
Write a thorough review of gifted education history and policy for t.docxWrite a thorough review of gifted education history and policy for t.docx
Write a thorough review of gifted education history and policy for t.docx
dunningblair
 
Write a three to four (3-4) page paper in which the student answer.docx
Write a three to four (3-4) page paper in which the student answer.docxWrite a three to four (3-4) page paper in which the student answer.docx
Write a three to four (3-4) page paper in which the student answer.docx
dunningblair
 
Write a three (3) page paper (750 words) about visiting The MET .docx
Write a three (3) page paper (750 words) about visiting The MET .docxWrite a three (3) page paper (750 words) about visiting The MET .docx
Write a three (3) page paper (750 words) about visiting The MET .docx
dunningblair
 
Write a single page-Word document answering the following questions.docx
Write a single page-Word document answering the following questions.docxWrite a single page-Word document answering the following questions.docx
Write a single page-Word document answering the following questions.docx
dunningblair
 
Write a summary of  the fallowing the articleLaden, B. V. (1.docx
Write a summary of  the fallowing the articleLaden, B. V. (1.docxWrite a summary of  the fallowing the articleLaden, B. V. (1.docx
Write a summary of  the fallowing the articleLaden, B. V. (1.docx
dunningblair
 
Write a summary of the fallowing Attachmentsthe discussi.docx
Write a summary of the fallowing Attachmentsthe discussi.docxWrite a summary of the fallowing Attachmentsthe discussi.docx
Write a summary of the fallowing Attachmentsthe discussi.docx
dunningblair
 
Write a small discussion in only 2 pages of the following questions.docx
Write a small discussion in only 2 pages of the following questions.docxWrite a small discussion in only 2 pages of the following questions.docx
Write a small discussion in only 2 pages of the following questions.docx
dunningblair
 
Write a short paper on the followingRelative to all of the issu.docx
Write a short paper on the followingRelative to all of the issu.docxWrite a short paper on the followingRelative to all of the issu.docx
Write a short paper on the followingRelative to all of the issu.docx
dunningblair
 
Write a short (half page) paragraph for each question and be s.docx
Write a short (half page) paragraph for each question and be s.docxWrite a short (half page) paragraph for each question and be s.docx
Write a short (half page) paragraph for each question and be s.docx
dunningblair
 
Write a response to each discussion question. Pick 3.1Top of F.docx
Write a response to each discussion question. Pick 3.1Top of F.docxWrite a response to each discussion question. Pick 3.1Top of F.docx
Write a response to each discussion question. Pick 3.1Top of F.docx
dunningblair
 
Write a response to each discussion question.2.1 AshleyTop.docx
Write a response to each discussion question.2.1 AshleyTop.docxWrite a response to each discussion question.2.1 AshleyTop.docx
Write a response to each discussion question.2.1 AshleyTop.docx
dunningblair
 
write a research about how the immigration system will change, and h.docx
write a research about how the immigration system will change, and h.docxwrite a research about how the immigration system will change, and h.docx
write a research about how the immigration system will change, and h.docx
dunningblair
 
Write a reflective essay about the information down below. Mention a.docx
Write a reflective essay about the information down below. Mention a.docxWrite a reflective essay about the information down below. Mention a.docx
Write a reflective essay about the information down below. Mention a.docx
dunningblair
 
Write a profile of a member of the United States Senate. Your profil.docx
Write a profile of a member of the United States Senate. Your profil.docxWrite a profile of a member of the United States Senate. Your profil.docx
Write a profile of a member of the United States Senate. Your profil.docx
dunningblair
 
Write a poem,song, or story using the muscles of the lower body.Use .docx
Write a poem,song, or story using the muscles of the lower body.Use .docxWrite a poem,song, or story using the muscles of the lower body.Use .docx
Write a poem,song, or story using the muscles of the lower body.Use .docx
dunningblair
 
Write a paper addressing the following •Identify and research at le.docx
Write a paper addressing the following •Identify and research at le.docxWrite a paper addressing the following •Identify and research at le.docx
Write a paper addressing the following •Identify and research at le.docx
dunningblair
 
Write a paper on the topic. Laptop is the topic I choose to pick to .docx
Write a paper on the topic. Laptop is the topic I choose to pick to .docxWrite a paper on the topic. Laptop is the topic I choose to pick to .docx
Write a paper on the topic. Laptop is the topic I choose to pick to .docx
dunningblair
 

More from dunningblair (20)

Write a two paragraph message to post in the Effective Speakers disc.docx
Write a two paragraph message to post in the Effective Speakers disc.docxWrite a two paragraph message to post in the Effective Speakers disc.docx
Write a two paragraph message to post in the Effective Speakers disc.docx
 
Write a three-part PAPER.  Part I  Show or discuss the existing a.docx
Write a three-part PAPER.  Part I  Show or discuss the existing a.docxWrite a three-part PAPER.  Part I  Show or discuss the existing a.docx
Write a three-part PAPER.  Part I  Show or discuss the existing a.docx
 
Write a summary of the fallowing Chapters 4, 5, 7, & 8 from the bo.docx
Write a summary of the fallowing Chapters 4, 5, 7, & 8 from the bo.docxWrite a summary of the fallowing Chapters 4, 5, 7, & 8 from the bo.docx
Write a summary of the fallowing Chapters 4, 5, 7, & 8 from the bo.docx
 
Write a thorough review of gifted education history and policy for t.docx
Write a thorough review of gifted education history and policy for t.docxWrite a thorough review of gifted education history and policy for t.docx
Write a thorough review of gifted education history and policy for t.docx
 
Write a three to four (3-4) page paper in which the student answer.docx
Write a three to four (3-4) page paper in which the student answer.docxWrite a three to four (3-4) page paper in which the student answer.docx
Write a three to four (3-4) page paper in which the student answer.docx
 
Write a three (3) page paper (750 words) about visiting The MET .docx
Write a three (3) page paper (750 words) about visiting The MET .docxWrite a three (3) page paper (750 words) about visiting The MET .docx
Write a three (3) page paper (750 words) about visiting The MET .docx
 
Write a single page-Word document answering the following questions.docx
Write a single page-Word document answering the following questions.docxWrite a single page-Word document answering the following questions.docx
Write a single page-Word document answering the following questions.docx
 
Write a summary of  the fallowing the articleLaden, B. V. (1.docx
Write a summary of  the fallowing the articleLaden, B. V. (1.docxWrite a summary of  the fallowing the articleLaden, B. V. (1.docx
Write a summary of  the fallowing the articleLaden, B. V. (1.docx
 
Write a summary of the fallowing Attachmentsthe discussi.docx
Write a summary of the fallowing Attachmentsthe discussi.docxWrite a summary of the fallowing Attachmentsthe discussi.docx
Write a summary of the fallowing Attachmentsthe discussi.docx
 
Write a small discussion in only 2 pages of the following questions.docx
Write a small discussion in only 2 pages of the following questions.docxWrite a small discussion in only 2 pages of the following questions.docx
Write a small discussion in only 2 pages of the following questions.docx
 
Write a short paper on the followingRelative to all of the issu.docx
Write a short paper on the followingRelative to all of the issu.docxWrite a short paper on the followingRelative to all of the issu.docx
Write a short paper on the followingRelative to all of the issu.docx
 
Write a short (half page) paragraph for each question and be s.docx
Write a short (half page) paragraph for each question and be s.docxWrite a short (half page) paragraph for each question and be s.docx
Write a short (half page) paragraph for each question and be s.docx
 
Write a response to each discussion question. Pick 3.1Top of F.docx
Write a response to each discussion question. Pick 3.1Top of F.docxWrite a response to each discussion question. Pick 3.1Top of F.docx
Write a response to each discussion question. Pick 3.1Top of F.docx
 
Write a response to each discussion question.2.1 AshleyTop.docx
Write a response to each discussion question.2.1 AshleyTop.docxWrite a response to each discussion question.2.1 AshleyTop.docx
Write a response to each discussion question.2.1 AshleyTop.docx
 
write a research about how the immigration system will change, and h.docx
write a research about how the immigration system will change, and h.docxwrite a research about how the immigration system will change, and h.docx
write a research about how the immigration system will change, and h.docx
 
Write a reflective essay about the information down below. Mention a.docx
Write a reflective essay about the information down below. Mention a.docxWrite a reflective essay about the information down below. Mention a.docx
Write a reflective essay about the information down below. Mention a.docx
 
Write a profile of a member of the United States Senate. Your profil.docx
Write a profile of a member of the United States Senate. Your profil.docxWrite a profile of a member of the United States Senate. Your profil.docx
Write a profile of a member of the United States Senate. Your profil.docx
 
Write a poem,song, or story using the muscles of the lower body.Use .docx
Write a poem,song, or story using the muscles of the lower body.Use .docxWrite a poem,song, or story using the muscles of the lower body.Use .docx
Write a poem,song, or story using the muscles of the lower body.Use .docx
 
Write a paper addressing the following •Identify and research at le.docx
Write a paper addressing the following •Identify and research at le.docxWrite a paper addressing the following •Identify and research at le.docx
Write a paper addressing the following •Identify and research at le.docx
 
Write a paper on the topic. Laptop is the topic I choose to pick to .docx
Write a paper on the topic. Laptop is the topic I choose to pick to .docxWrite a paper on the topic. Laptop is the topic I choose to pick to .docx
Write a paper on the topic. Laptop is the topic I choose to pick to .docx
 

Recently uploaded

Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
sayalidalavi006
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 

Recently uploaded (20)

Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 

Write a program that opens a local file CDataDirectorydata.txt .docx

  • 1. Write a program that opens a local file C:DataDirectorydata.txt reads in the data into your program without removing the data from the file and appends new data onto the end of the existing data in the program, and then appends the new data onto the existing data within the file. For example, if the data file originally contained the following data: Hello Then when your program is done, it should say: HelloHello my name is Bob Also, you must utilize exception handing technique to validate that the file has been open, and offer the user a chance to enter a correct filename until the file is found. Hint: Use the overloaded open functions, or use random access methodology. Save program as a cpp file type.