file input output

I am new to C++ programming and am trying to find a way to write variables to a file and then read those variables at a later time, for something such as a save system in a game where their attribute values would be saved. Any help would be great thanks!
Topic archived. No new replies allowed.