Reading a line from a text file Please help
i am coding a game, and trying to find out to save the game, load the game, keep inventory, etc.
I want to read from those files, saving them is working, and set the things according to that, however, i would need to read that line, and set the stats from that line. I only know how to display the entire file, and i can do it in binary, but i find binary to be a pain in the butt.
I do not wish to make a seperate file for each thing, but even then, using ifstream fin, i can only read one character at a time, making them into a actual string is a different story.
Thanks in advance!