With respect to various file streams and modes, answer the following questionsa. What is the difference between ios::ate and ios::app?b. ios::trunc is similar to ios:out. State true or false. Justifyc. Explain the syntax of seekg function with example?d. Write the meaning of following syntaxfstream myFile("test.txt", ios::in | ios::out | ios::trunc);e. State if the below code will execute or not? State the reasonsofstream outfile;outfile.open(“name1.txt”);outfile.open(“name2.txt”);outfile.close();
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here