I developed a project (which have several classes) in VC++, when it execute gives some output. I would like to store these results to use it for next iteration of the project.
there is one way to store data in txt file but it needs lot of file handling process. i would like to retrieve variable as it is and then modify it for next iteration. Some how like serialization but i want to store only variable which may be vector type.
Every group of relating tasks having enough complexity would worth putting in a special module, so why wouldn't you create a class for that file handling and data management? It would be something that automatically resolve it's state (initialize itself if not already, open a file and access data, if a file is not found - log the event and create a new, etc.), and it would be also a constructive solution for further use!