Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
Is it possible to test a file to make sure it is a certain size, this way, if a player tampers with an external file, (changing the size) the game will print an error message then shutdown.
If you want a better tampering detection, you should use CRC. Just counting the bytes is a bit silly (I could change for example the level of the player from 65 to 99)