C#, how to halve a byte array?
- by JL
I have a byte array defined like this
byte[] fileContents = File.ReadAllBytes(zfoFileName);
How can I get the first 1/2 of the fileContents byte array?
In other words if the upper bound of the array is 10, I would like a new byte array to have the first 5 values of fileContents.
Thanks in advance