Okay so I'm working on this and for some reason I can't use getline in my save function, I switched it to a cin instead and it works just fine. I was wanting to know if there's a way to use a getline in the context I'm trying to use it. This isn't a threatening problem because as of now I can switch it out for cin, but I'm just curious on why it wasn't working. Also, if anybody knows a way I should better format the area where its inputting the player data would help, or if there's something I'm not thinking of in the first place.
The problem with getline() is probably because somewhere prior to this function you have used the extraction operator >> which leaves the end of line character in the buffer. You will need to retrieve this new line character prior to the getline().