tsmith2471
Newbie
- Oct 21, 2012
- 14
- 4
Trying to read a binary file and cannot put the bytes into a string. Does anybody have and advice? Thanks
Code:
BinaryReader binaryreader = new BinaryReader(File.OpenRead(file location));
while(binaryreader.Read() > 0)
{
byte[] empIdBytes = new byte[3];
binaryreader.Read();
String empId = new String(empIdBytes);
byte[] empIndBytes = new byte[1];
binaryreader.Read();
String empInd = new String(empIndBytes);