>>542 とりあえず、ファイルの5バイト目の値を表示するサンプルね。
try {
FileStream fs = File.OpenRead("hogefile");
using (fs) {
// 5バイト目に移動。(ファイルの先頭+4バイト)
fs.Seek(4, SeekOrigin.Begin);
// 16進フォーマットで値表示。
Console.WriteLine("{0:x2}", fs.ReadByte());
}
}
catch (Exception x) {
Console.WriteLine(x.Message);
}