Ok grrr i got a new problem. So the data is written correctly but not loaded correctly still. I load the game and it should say "welcome Chay Hawk to America" but instead it says welcome Chay to Hawk. ?? why is that? i think its reading the white space and skipping or something. how do i fix that?
Oh man, I've got to get my eyes checked out!!!
The order of 36, 37, 38 doesn't match 45, 46, 47. Namely, the types don't match. The first insertion operator on line 45 attempts to put the string (name) into the integer (money) and 'file' crashes there (gracefully).