I'm reading from a file and finding the highest value with in the text file. For some odd reason this bit of code is stopping at the 54th number instead of transversing the entire 100 numbers. Any ideas why?
Code:Dim SReader As System.IO.StreamReader SReader = IO.File.OpenText("NumberSet") intCount = 0 For intCount = 0 to SReader.Peek - 1 If CDbl(SReader.ReadLine.ToString) > NumHighest Then NumHighest = CDbl(SReader.ReadLine.ToString) End If Next SReader.Close()





Reply With Quote