AdBrite

Your Ad Here

Wednesday, October 27, 2010

Stream.Write Method

When overridden in a derived class, writes a sequence of bytes to the 
current stream and advances the current position within this stream by
the number of bytes written. 

const int size = 4096;
byte[] bytes = new byte[4096];
int numBytes;
while((numBytes = input.Read(bytes, 0, size)) > 0)
output.Write(bytes, 0, numBytes);

No comments:

Post a Comment

BidVertiser

pocket cents

PocketCents Local Online Advertising