Hello !
Beginner's question:
What ist the easiest way to store and save objects in a file generated
by a C++ program, by using the "standard C++ library" and/or "Standard
Template Library ( STL )" ?
So I would like to generate some objects ( of different classes ) with a
C++ program and would like to make it permanent / persistent, so that
when calling the C++ program next time, I can load the objects from that
file and use it again ( or use the data stored in that objects )?
I dontīwant to store text data in text files, with non-trivial methods
to save and restore the data. So I donīt want a data delimiter format.
Especially, as the data is edited/modified, I canīt read the data from a
read-only .RC resource file, as I must rewrite it too. And I am not
shure if writing to a .RC resource file is so easy.
The concrete task of my C++ course at our university ist to build a
little "football manager", where I must load the name of the football
teams and the team pairings, and the results of each game.
One solution might be
"The stream buffer classes" of STL.
I donīt want to use proprietary functions of GUI frameworks ( MFC, QT,
wxWindows, Borland libraries....).
The other solution is to store the data in a SQL database and to access
the data by ODBC driver, of course. BUt for time, the C++ course does
not focus on databases, so I am looking for an "easier" solution.
Sincerely
Rolf
--
/ / / Alone on the data highway...
/ / like on an allee in Hannover-Herrenhausen
/ / / The Hemmerling (R) WEB site - Rolf Hemmerling,Germany
/ / / http://www.hemmerling.com/