Saving problem

Started by
3 comments, last by Brandon111111 20 years, 5 months ago
If I want to save the information of what I have done on a console application made in C++, is there a code I could use that could implement that ability?
Advertisement
What do you mean save what you have? Save what''s visible on the console to a text file? For example, if your program said "Hello world!", the words "Hello world!" would be printed into a text file?
Well, sort of. What I want is to be able for the content on the program to be saved, so when i open the program, it starts where it left off.
There is no automatic way. You could, however, dump the program state (i.e. the value of all variables and so forth) to a file and open this when you run the program (either manually, e.g. as a command line parameter, or automatically if you wish to go to this length).
Ok, thanks, I didn''t realize that.

This topic is closed to new replies.

Advertisement