I need assistance with posting lines from a text file (test scores) into an array. From there, I'll have to average the test scores, find the standard deviation (without using the built in function) and assign grades based on the test scores' deviation. I have already written the code for the user to search and upload a text file. And I should be able to do the standard deviation of the array, if someone can help give me an example of how to send the text file to array and average the lines of the array without using the built in math functions.

Below is the code I currently have.

Thank you in advance.

Public Class Form1

Private Sub btnGo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGo.Click
Dim textFile As String
OpenFileDialog1.ShowDialog()
'
textFile = OpenFileDialog1.FileName
lstOut.DataSource = IO.File.ReadAllLines(textFile)
lstOut.SelectedItem = Nothing

End Sub
End Class