View Single Post
  #2 (permalink)  
Old 07-09-2009, 5:58 AM
JohnH's Avatar
JohnH JohnH is offline
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 37
Posts: 10,303
Reputation: 1315
JohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond repute
Default

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.
__________________
Reply With Quote