I'm trying to read the last 200 lines of a text file - however the following returns a single line (line number 200 from the end of the file) instead of the last 200 lines
How do i read the last 200 lines of the file?
Code:
Dim lines As String() = IO.File.ReadAllLines(Strings.LogFile)
logresults = lines.Length - 200