View Single Post
 
Old May 14th, 2016, 10:49 PM
phztfte1 phztfte1 is offline
Authorized User
Points: 384, Level: 6
Points: 384, Level: 6 Points: 384, Level: 6 Points: 384, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2014
Posts: 91
Thanks: 2
Thanked 1 Time in 1 Post
Default Chapter 15 Demystifying C++ I/O

Marc,

Storing a class object in a container is temporary, and all data is lost when the program terminates. How do you store a class object data in a file and read that data afterwards? Say, the data members are two strings (e.g., mFirstName and mLastName) and a character (e.g. mMiddleInitial).