input/output file

Write a program that takes its input from a file (stored in Hard Disk) of numbers of type double and outputs the average of the numbers in the file to the screen. The file contains nothing but the numbers of type double separated by blanks. ?????
Topic archived. No new replies allowed.