So I made an RPG last couple of days and looking for a way to make it save...
I know I should use input/output file but I just don't understand the tutorial here on the site. What's the best way to save variables to a file, so that it can load them the next time the program starts?
@Galik
The won't work. operator>> leaves the '\n' in the stream, so the getline() call will actually return an empty string.
use ifs.ignore(std::numeric_limits<std::streamsize>::max(), '\n'); before calling getline on line15.