Is there a event that added data to the Stream?
mc
4,111
Reputation points
Is there event that when the stream data added it will triggered?
while(true)
{
offset+=m.Read(buffer,offset,1024);
}
can it be true that not use while when there is enough data it will read the stream and when I read the data the stream to be empty?