Converting from byte[] to string
问题 I have the following code: using (BinaryReader br = new BinaryReader( File.Open(FILE_PATH, FileMode.Open, FileAccess.ReadWrite))) { int pos = 0; int length = (int) br.BaseStream.Length; while (pos < length) { b[pos] = br.ReadByte(); pos++; } pos = 0; while (pos < length) { Console.WriteLine(Convert.ToString(b[pos])); pos++; } } The FILE_PATH is a const string that contains the path to the binary file being read. The binary file is a mixture of integers and characters. The integers are 1 bytes