Saving the Object to a Flat File
In this section, we use a flat file to illustrate object persistence. I define a flat file as a simple file managed by the operating system. This is a very basic concept, so don’t get too caught up in this description.
One of the issues you might have considered is that an object cannot be saved to a file like a simple variable—and this is true. In fact, this problem of saving the state of an object has spawned a major segment of ...
Get The Object-Oriented Thought Process, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.