I need to read integers and floating point data from a file and calculate the mean and variance. I know how to perform the calculations, however I don't know where to start when it comes to reading in this data correctly. Any examples would be appreciated.

Thanks!

flight