#include <iostream.h>
#include <fstream.h>

void readFromFile()
{
    ifstream ifile("myfile.txt");
    if (ifile == 0)
    {
        cerr << "Can't open file \"myfile.txt\"\n";
        exit(1);
    }
    
    float val;
    while (ifile >> val)
    {
        cout << "Read the value " << val << endl;
    }
}

