You can just treat them like you do cout and cin, basically, so I'm not exactly sure what part of the save/load process you are having trouble understanding.
> Could you provide example code of setting and getting int values from a file?
It is much easier to
a. Read the data in the file into a sequence held in memory.
b. Modify the values in memory as required.
c. Write the modified sequence back into the file.