Changing ifstream to Integers (after being loaded from a .txt file) C++
<p>Okay, so, I have a couple text files that are written to and read from in my program, they are loaded using:
<em>here is one of the four</em></p>

<pre><code>ifstream xps;
</code></pre>

<p>and then loaded using:</p>

<pre><code>xps.open ("xp.txt", fstream::in | fstream::app);
</code></pre>

<p>Inside of xps is a number, and I would an integer (called xp) to load this number.</p>

<p>So how would I go about doing this?</p>
