string resistance;
ifstream in;
in.open(filename);
while (!in.eof())
{
getline(in, resistance);
cout << resistance <<endl;
}
in.close();
That is the code im using to read from the file. The output from the file is: for example:
10 25 10 60 45 35
10 45 23 45 65 88
I want to take each line and perform a mathematical operation by each each value of the line to a variable