I\'m trying to learn how to use file handling in C++. I\'d like to save and edit the contents of variables, however, there seems to be a problem with my logic because someho