I am running a script where i load .cnt files and reaction files that are stored as a .txt files. What i didn't realize is that there was one file that was corrupt and that caused my script to not work. I took care of that without any trouble. However, this got me thinking of what would happen in the future. Since this is a lab where i work at people tinker with those files and sometimes this said tinkering could cause it to not function. Is there a way where i could specify the errors that i could get and if the script comes across those errors, the code would then mark them as corrupt and notify the user that they need to be taken out of the data run.
MATLAB: Changing the name of the file that is corrupt
data importerrorfiletext file
Best Answer