Reading integers from a text file
<p>I have a text file, in which I am writing 3 things</p>

<p>Eg &lt; int,int,char> for each word.</p>

<p>Now, I am reading the file such that I consider a block of 3.1st one I always consider an integer, 2nd one also as integer and the 3rd one as character .There is no problem when the integer is from 0-9 but when it exceeds like 10,100 then my program doesn't work for the obvious reasons.</p>

<p>Like there is no problem when I have to read this</p>

<pre><code>11a     here &lt;1=int,1=int,a=char&gt;
</code></pre>

<p>but when something like this comes, I face problem</p>

<pre><code>152a    here &lt;15=int,2=int,a=char&gt;
</code></pre>

<p>I have put the whole text file in a string.Now, how how do I read the characters that I no longer face the above mentioned problem</p>

<p>Some more info: My text file contains characters like this<br>
                 11a22d33f1234f</p>
