java
php
iphone
css
python
database
linux
mysql
multithreading
flash
perl
facebook
tsql
delphi
mvc
asp
api
jsp
postgresql
dom
Dim Mileage As New System.IO.StreamReader("SDMileage.dat") Dim strLine As String Dim strSplit() As String
CHANGE THIS TO Mileage.Peek
Do While State.Peek <> -1 strLine = Mileage.ReadLine strSplit = strLine.Split(",")
Try looping this way instead
Dim Mileage As System.IO.TextReader = New StreamReader("SDMileaage.dat") do while ((strline = Mileage.ReadLine) <> nothing)
The Peek method might be fine, I just typically use the code above when working with text files, might be worth a shot...