(a) Explain the role of seekg(), seekp(), tellg(), tellp(), function…
Previous year question for Object Oriented Programming Using C++.
Question
(a) Explain the role of seekg(), seekp(), tellg(), tellp(), function in the process of random access in a file. (10)
(b) Write a C++ program involving working with a single file. Use ifstream and ofstream classes to write and read the information to and from a file using operators:- << and >>. Show how a file can be opened and closed. (10)
- Year: 2022
- Subject: Object Oriented Programming Using C++