To make it truly MFC you would need to make your listcontrol serializable
What it means according to Microsoft is:
Quote:Serialization is the process of writing or reading an object to or from a persistent storage medium such as a disk file. Serialization is ideal for situations where it is desired to maintain the state of structured data (such as C++ classes or structures) during or after execution of a program. Using the serialization objects provided by MFC allows this to occur in a standard and consistent manner, relieving the user from the need to perform file operations by hand.
Making the object serializable is a very simple process (see the link above). However, you would have to define << and >> operators to read to/fro CArchive. Here, where you will have to define the document structure.
First thing that comes to mind is to use a comma-separated file CSV
]. By doing it this way you also provide an ability to the users to open and view the files via Excel.
However, if you have values in your listcontrol with commas or line breaks, the values would have to be quoted. See here
] for more details