biteme <an*******@discussions.microsoft.com> wrote:
I have an array of bytes which i want to write out to a
file.
What classes do i need that do this??
i know you can do stuff with binary writer and stream
writer, but how do i create a file with my data in it?
thanks...
Just use a FileStream - the MSDN docs for it have some examples.
Using a BinaryWriter when you just want to write out an array of bytes
is overkill - BinaryWriters are really for writing sequences of
primitives etc.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too