Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BinaryReader reader = new BinaryReader(new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read));
- byte[] header = reader.ReadBytes(13);
- if (header != new byte[] { 0x41, 0x4B, 0x54, 0x41, 0x47, 0x00, 0x46, 0x4F, 0x47, 0x00, 0x00, 0x00, 0x00 })
- {
- reader.Close();
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement