I would like to do something like this:
'********************************
Dim objStreamReader As StreamReader
Dim strReqLine As String
objStreamReader = File.OpenText("data.txt")
While NOT objStreamReader.EOF
strReqLine = objStreamReader.ReadLine
'* Code to parse the line for data
End While
'********************************
Except the StreamReader object doesn't seem to have an EOF property. Are
there any work-arounds?
Thanks,
Sacha
Just use:
While StreamReader.Read
End While
It will stop when it hits EOF.
Sincerely,
--
S. Justin Gengo, MCP
Web Developer
Free code library at:
www.aboutfortunate.com
"Out of chaos comes order."
Nietzche
"Sacha Korell" <kor...@huntsville.sparta.com> wrote in message
news:O$ppRs%23cDH...@tk2msftngp13.phx.gbl...
strReqLine = objStreamReader.ReadLine()
While Not strReqLine Is Nothing
'* Code to parse the line for data
strReqLine = objStreamReader.ReadLine()
End While
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.