public int ReadInt32(FileStream fs, int pos) { fs.Seek(pos, SeekOrigin.Begin); byte[] buff = new byte[4]; fs.Read(buff, 0, 4); return BitConverter.ToInt32(buff, 0); }