csharp get all bytes of a file

Code Example - csharp get all bytes of a file

                
                        //replace filepath with the real filepath
byte[] fileBytes = System.IO.File.ReadAllBytes(filepath);