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]

Pubblicità Google Adsense

Se ti è piaciuta la notizia condividila con twitter o facebook...

Nel mio template dei commenti ho rimosso il tag nofollow se vuoi puoi farlo anche tu con il plugin nofollowfree

Segui il feed rss relativo a questa notizia: sottoscrivi feed commenti


Trackback & Pingback

Se vuoi rispondere a questa notizia o usarla sul tuo spazio internet usa l'url di trackback e il tuo sito apparirà nella lista dei trackback e pingback:


Commenti per “Come Scrivere Bytes In Un file C#”

  1. Some Dude scrive:

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

  2. i vostri metodi sono i migliori:) Grazie per la pubblicazione

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

Ricevi un avviso se ci sono nuovi commenti. Oppure iscriviti senza commentare.