Results 1 to 36 of 36

Thread: [RESOLVED] [2005] Why is this not completeing

Threaded View

  1. #1

    Thread Starter
    Addicted Member Abrium's Avatar
    Join Date
    Feb 2007
    Location
    The Great State of Texas
    Posts
    205

    Resolved [RESOLVED] [2005] Why is this not completeing

    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()
    Last edited by Abrium; Apr 30th, 2007 at 02:51 AM. Reason: not resolved on issue
    Abrium
    Asking the beginners questions so you don't have to!
    If by chance hell actually froze over and I some how helped you... Please rate.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width