I'm relatively new to programming and taking a course in C++ currently. I haven't had any major problems so far. I am making a program where an X amount judges can score 0.0 - 10.0 (double) and then the highest and lowest one is removed then an average is calculated and printed out.
This part is done, now I want to read from a file in the shape of: example.txt - 10.0 9.5 6.4 3.4 7.5
But I am stumbling onto problems with the dot (.) and how to get around it to get the number into a double. Any suggestions and (good) explanations so I can understand it?
TL;DR: Reading from file (E.G. '9.7') to a double variable to put into an array.