All im trying to do is make this function to return how many lines are in the log file. I had this working perfect in vb6 and had some NIMROD idea to try and learn some .NET and now im sort of stuck on it.

This is what Ive come up with so far but all that happens is it seems to loop forever.
VB Code:
  1. Public Function LogSize(ByVal pLog As String) As Long
  2.  
  3.         Dim x As Long
  4.         Dim sTmp As String
  5.         Dim oFile As New System.IO.FileStream(pLog, IO.FileMode.Open)
  6.         Dim oRead As New System.IO.StreamReader(oFile)
  7.  
  8.         Do While oRead.Read
  9.             sTmp = oRead.ReadLine
  10.             x = x + 1
  11.         Loop
  12.         LogSize = x
  13.         oRead.Close()
  14.     End Function

Thanks for looking