Sorry this is the code
Pattern = 'TWOPNT: SUCCESS'
A = fileread('OppDiff_HTPB_N2O.out')
B = strfind(A,Pattern)
empty = [] %what B will spit out an empty matrix if the pattern is not
%found in the file
if isequal(size(empty), size(B))
disp('No TWOPNT success found...may be a convergence problem')
error_message = 'No TWOPNT: SUCCESS found'
break
else %if the B matrix is not empty
disp('TWOPNT appears to have been successful! Conitnuing...')
endif