Save and reload

I’m building a 3d game. I want the game to be able to save the game, and reload it from where the player left it. Anyone have any ideas on how to do this?

What does this have to do with OpenGL? Or any 3D API, for that matter?