read 1D array, get count and total

Need to figure out how read a 1D array from a file to get the total count of numbers and and the sum of the numbers in an array. The number of numbers in the array is not known.



closed account (j3Rz8vqX)
How would you read data from a file?http://www.cplusplus.com/doc/tutorial/files/
Topic archived. No new replies allowed.