2 Code:
  1. Dim numHighest As Double = 0
  2.   Dim currentItem As Double = 0
  3.  
  4.         Using sr As New IO.StreamReader("numberSet.txt")
  5.             Do Until sr.Peek = -1
  6.                 If Double.TryParse(sr.ReadLine, currentItem) Then
  7.                     If currentItem > numHighest Then
  8.                         numHighest = currentItem
  9.                     End If
  10.                 End If
  11.             Loop
  12.             sr.Close() 'Examples on MSDN still had this line so thought I'd better use it
  13.         End Using
  14.  
  15.         MessageBox.Show(numHighest.ToString)