Let me see if I understand you correctly.
First you want to read to a text-file to get and treat every line as a number (which you call a grade), am I correct? What I don't understand is where you get the number 24 from, but what I would do to read the file is as following:
List<int> gradeArray = new List<int>();
StreamReader strRead = new StreamReader("Grades.txt");
while ((gradeValue = strRead.ReadLine()) != null)
gradeArray.Add(Convert.ToInt32(gradeValue));
strRead.Close(); //Important
gradeArray will now contain the grades.
How many tests where input is as simple as gradeArray.Count , the average is gradeArray.Sum() / gradeArray.Count (using LINQ).
To order the grades do the following
List<int> orderedGrades = from grade in gradeArray
orderby grade
select grade;
The last example also uses LINQ.
Note, this code hasn't been tested.