******Please use C++ as the langauge********** Create a program that works with
ID: 657555 • Letter: #
Question
******Please use C++ as the langauge**********
Create a program that works with external files. Create functions to perform the following actions: file creation/write, file append and file read.
Objective:
Create use and pass filestreams that input/ output data to and from external files.
Lab Procedure:
1. Write the function to create n lines of a use named output file.
2. Write the function to append n lines to an existing file.
3. Write the function to read a user selected file and display it on the console.
All file streams are declared in the main function.
The main function will request the filename from the user.
No Global variables.
All console input and output should be formatted and easy to read.
FILE FORMAT: All external files will consist of lines that contain three (3) of the following datatypes: int, double, bool, char or string.
Hints:
- filestreams
- external files
Explanation / Answer
FileOperationsTest.cs
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.