Does anybody know, how to write a programm which can ceck if a MP3 file is corrupt or not ?

Thanks for help,

Thomas