I got it to output my desired Red team but I also need to calculate the average for the react and response times. I do not know how to calculate them from the text file. Can someone please help?
That wouldn't work because I'm trying to average them separately. Like from the Red team react, I want it to do (90+91+19)/3 to get the average and then do it the same for the response part.
The average for the yellow comes out as 136.667 for the react and 83.333 for the response. What am I doing wrong that its not calculating right?
Also I have another question. I have two txt files in my project running and after I code this, I need to open the second txt file to run it the same thing with a different data set. However, I am not getting the second txt file open. I used inFile.close() and it doesn't work.