integer by integer file reading
<p>I want to read file so that it should read integer by integer. I have read it line by line but i want to read it integer by integer.</p>

<p>This is my code:</p>

<pre><code>void input_class::read_array()
{    
        infile.open ("time.txt");
        while(!infile.eof()) // To get you all the lines.
        {
            string lineString;
            getline(infile,lineString); // Saves the line in STRING
            inputFile+=lineString;
        }
        cout&lt;&lt;inputFile&lt;&lt;endl&lt;&lt;endl&lt;&lt;endl;
        cout&lt;&lt;inputFile[5];

        infile.close();
}
</code></pre>
