read a bytearray like a stream?

  • Thread starter Thread starter Laszlo Szijarto
  • Start date Start date
L

Laszlo Szijarto

Is there anyway to use some kind of StreamReader to read through a byte
array? I would just like the pointer to where you're at automatically
updated for me.

Thank you,
Laszlo
 
Laszlo,

You can use the MemoryStream class, passing the byte array to the
constructor. This will allow you to use the methods on the Stream abstract
class to read through the contents of the array.

Hope this helps.
 
Back
Top