With respect to various file streams and modes, answer the following questions a. What is the difference between ios::ate and ios::app? b. ios::trunc is similar to ios:out. State true or false....


With respect to various file streams and modes, answer the following questions
a. What is the difference between ios::ate and ios::app?
b. ios::trunc is similar to ios:out. State true or false. Justify
c. Explain the syntax of seekg function with example?

d. Write the meaning of following syntax
fstream myFile("test.txt", ios::in | ios::out | ios::trunc);
e. State if the below code will execute or not? State the reasons
ofstream outfile;
outfile.open(“name1.txt”);
outfile.open(“name2.txt”);
outfile.close();





Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here