title: Loading Variables from Text File in C++
body: <p>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.</p>
  
  <p>For example, in "settings.txt":</p>
  
  <pre><code>800
  600
  32
  </code></pre>
  
  <p>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.</p>
  
  <p>Sorry, I'm pretty new to I/O.</p>