Insert Byte Element into array of bytes

G

Guest

I have following code that reads a binary file into array of bytes, after I
read the file i need to insert a space in fisrt element of array ,how can I
achieve this

System.IO.FileStream fs = new
System.IO.FileStream(fileName,System.IO.FileMode.Open,System.IO.FileAccess.Read);
System.IO.BinaryReader br = new System.IO.BinaryReader(fs);
byte [] sysFile = {0};
while(br.Read() > 0)
{
sysFile = br.ReadBytes(Convert.ToInt32(fs.Length));
}
br.Close();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top