Delete corrupt file rather than throw an exception
I have a the save data file serialized. If the file is corrupted, I get some kind of exception (I get all kinds) and the game doesn't load properly.
Is there a way to detect that the file is corrupted and delete it rather than throw the exception?
Comment