How to calculate a mean value from a file. my txt file contains the following values( No floating point only integers). Assume that my data.txt file contains 100 numbers.
Input File name: Data.txt- Values 2, 3, 4, 5, 6, 7, 8, 9
Output
--------
Mean = 5.5
I m new to Files. can anybody help me to solve this?