Gonna try to keep this short. Making a game similar to zork basically a text based rpg and need to save everything in the game into a save file at any given time I may need to in game. I know it would have to do with reading and writing to files but how would it pick up off of that? Would I have to point to the exact spot of memory my character left off on? Was thinking of making a class and having it just save on its own at various points or manually but I don't understand how exactly it all goes together.
You can't reference memory in files. Memory addresses are re-used by the OS and by other programs, so all it takes is for you to restart your program for all the memory addresses to be invalid. Instead, look up serialization.