I know this question has been asked a million times before, but most of the questions are more complex than I need. I already know which lines will have what data, so I just want to load each line as its own variable.
For example, in "settings.txt":
800
600
32
And then, in the code, line 1 is set to int winwidth, line 2 is set to int winheight, and line 3 is set to int wincolor.
Sorry, I'm pretty new to I/O.