Hey everyone. I have made 2 different games so for and am currently working on my third one. What I want to do is be able for the user to type is something such as his name, and it be able to remember that by saving it on a file. Then, when you close the program and reopen it, it can read that name from the document and use that in the game, so the person only has to type his name once. Can anyone think of a specific function that could help me? Thanks!
It's a good way but if you want to create a profile for every person which contains other data too, you can save profiles in *.ini files and retrieve them by GetPrivateProfileString() and GetPrivateProfileInt() and write them by WritePrivateProfileString() and WritePrivateProfileInt() functions.
All of them are in windows.h header.