I'm at work right now an can't check to see if this is right but try it an see

VB Code:
  1. Public Function LogSize(ByVal pLog As String) As Long
  2.         Try
  3.             Dim sr As StreamReader = New StreamReader(pLog)
  4.             Dim line As String, lines As Long
  5.             line = sr.ReadLine()
  6.             Do
  7.                 lines += 1
  8.                 line = sr.ReadLine()
  9.             Loop Until line Is Nothing
  10.             sr.Close()
  11.             return lines;
  12.         Catch e As Exception
  13.             ' In case of error
  14.             MessageBox.Show("Exception Occurred: " & vbcrlf & e.Message)
  15.             Return -1;
  16.         End Try
  17.     End Function