Come Scrivere Bytes In Un file C#

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. Diffondere contenuti che trovi rilevanti aiuta questo blog a crescere. Grazie!

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

  1. Some Dude

    thanks, Ill make sure to remember it this time ………… or ill just bookmark this page

Comments are closed.