Question: C++ In this assignment, your program will be writing to and reading from a file and display some ASCII Art. Requirements: 1. Create a user-defined

C++

In this assignment, your program will be writing to and reading from a file and display some ASCII Art.

Requirements:

1. Create a user-defined function writeToFile(). One of its parameters should be the file name the function writes to. The function takes two lines of input text and write to a file. (For 1 extra credit, design the function to take any number of lines of any text.) For example, you may write the following two lines -

o o \__/

2. Create a user-defined function called readFromFile() that takes file name as a parameter. The function should display the content in the file.

3. Surround the two user defined functions with a namespace block and name the namespace your name (using underscore to connect the first name and last name, because namespace name dose not allow spaces.)

4. In main(), make function calls to both functions.

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!