I have got a binary file. I have no clue how to read this binary file using C#.
The definition of the records in the binary file as described in C++ is:
See the sample below.
public byte[] ReadByteArrayFromFile(string fileName)
{
byte[] buff = null;
FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read);
BinaryReader br = new BinaryReader(fs);
long numBytes = new FileInfo(fileName).Length;
buff = br.ReadBytes((int)numBytes);
return buff;
}
Hope that helps...