Write byte[] in file

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

Hello.

How can I write binary data from byte[] to some file on disk?

Thank you.
 
Hi Mark,

how about using

System.IO.FileStream fileStream = System.IO.File.Create("path");
fileStream.Write(byteArray, 0, byteArray.Length);
fileStream.Close();

Regarding,
Christian
 

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