
07-09-2009, 5:58 AM
|
 |
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
|
|
Join Date: Dec 2005
Location: Norway
Age: 37
Posts: 10,303
Reputation: 1315
|
|
What is it you're reading, and why don't you know the size?
If the reading is indefinite and you're just reading from the open stream you can do-loop on some other condition, f.ex until app or stream close or message known to be ended, and only read if data is available.
|