Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Lab 14

1. Create a file pointer name file.

2. Open a file called firstfile.txt for writing and reading, which will be returning a pointer f
of file object.

3. Write a program to prompt the user for an input. Store the input into a file called
firstfile.txt.

4. Write a program to read the contents from firstfile.txt and display it on the screen.

You might also like