Come Scrivere Bytes In Un file C#

Sponsored Links

filetest

Molte volte avevo bisogno di scrivere un array di byte in un file, il seguente metodo è più semplice:

using (System.IO.Stream s = System.IO.File.Create(@"c:\filename"))
{
s.Write(downloadBytes, 0, downloadBytes.Length);
}

source code:
[download#7]

L'articolo ti è stato utile?

Condividilo sulla tua rete di contatti Twitter, sulla tua bacheca su Facebook o semplicemente premi "+1" per suggerire questo risultato nelle ricerche in Google. Diffondere contenuti che trovi rilevanti aiuta questo blog a crescere. Grazie!

Sponsored Links

2 thoughts on “Come Scrivere Bytes In Un file C#

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>