Need to write a byte array to a file? .NET’s got your back with File.WriteAllBytes.
Usage:
var bytes = GetSomeBytes(); File.WriteAllBytes(@"c:\temp\somefile.tmp", bytes);
Need to write a byte array to a file? .NET’s got your back with File.WriteAllBytes.
Usage:
var bytes = GetSomeBytes(); File.WriteAllBytes(@"c:\temp\somefile.tmp", bytes);