2080 9

BIT153 ยท 2080 ยท 5 marks

Write a Program to read and write values through object using File Handling.

Write a Program to read and write values through object using File Handling. [5]

Object Oriented ProgrammingChapter 10: Exception Handling and File I/OFile handling with objects

File handling in C++ allows storing and retrieving object data (attributes) to/from files using fstream. We use write() to store binary data and read() to retrieve it. --- --- --- Feature Description ------ fstream Used for both reading and writing ios::out \ ios::binary Opens file in binary writ...