Reads in a CSV file and calculates the average.