Computer Programming II - Lab Test - Q1

You might also like

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

Computer Programming II

Lab Test (5%) Time allotted: 20 Min.


Find the solution to the following problem.
➢ Write a C++ program that inserts a string “This is the content of the
file.” to the following empty text file called file.txt. The program
should display the content to the screen.

You might also like