csharp write all bytes to a file

Code Example - csharp write all bytes to a file

                
                        System.IO.File.WriteAllBytes(filepath,bytesToWrite);