operations does your algorithm do

There is a set of numbers stored in a file, but we don’t know how many it contains. Write an algorithm in pseudo code to calculate the average of the numbers stored in this file. What type of operations does your algorithm do? How many of each of these operations does your algorithm do?