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

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top