lab4Data = Miller Andrew 65789.87 5
Green Sheila 75892.56 6
Sethi Amit 74900.50 6.1
I am trying to take data from a file, calculate it, and put it into another file, but somehow the program is reading the inputfile but not putting it into the outputfile.
Is there something wrong with the loop?
i wrote
infile >> lastname >> firstname >> currentsalary >> payincrease;
between
infile >> payincrease;
and
while (infile)
but it is still not sending information to the ourfile.