Well, I hope my topic made sense.
I have a program that opens files of some type and of a certain format (data is structured in a certain format) to be used in my program. These files contain simple text data.
Now, if I try to open a corrupt file, it will crash (Assertion Failure) because the data in it isn't in the right order and it must be for the program to read it open it correctly.
Any ideas on how I can catch that and maybe display the user of the program a message telling him/her how the file is corrupt and somehow avoid the user from having that terrible Assertion Failure message pop up?
Thanks in advance.
I have a program that opens files of some type and of a certain format (data is structured in a certain format) to be used in my program. These files contain simple text data.
Now, if I try to open a corrupt file, it will crash (Assertion Failure) because the data in it isn't in the right order and it must be for the program to read it open it correctly.
Any ideas on how I can catch that and maybe display the user of the program a message telling him/her how the file is corrupt and somehow avoid the user from having that terrible Assertion Failure message pop up?
Thanks in advance.