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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top