Object Oriented Programming2080.15 marksBinary file reading and writing
Write a program that writes objects to a binary file and reads objects from the same file.
Write a program that writes objects to a binary file and reads objects from the same file. [5]
Binary file I/O in C++ allows storing objects (structured data) directly in binary format using fstream. The key functions used are: - write() - writes raw bytes of an object to a binary file - read() - reads raw bytes from a binary file back into an object --- --- --- Feature Description ------ ...